mirror_window_test_api.cc revision 90dce4d38c5ff5333bea97d859d4e484e27edf0c
1// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "ash/test/mirror_window_test_api.h"
6
7#include "ash/display/mirror_window_controller.h"
8#include "ash/shell.h"
9#include "ui/gfx/point.h"
10
11namespace ash {
12namespace test {
13
14const aura::RootWindow* MirrorWindowTestApi::GetRootWindow() const {
15  return Shell::GetInstance()->mirror_window_controller()->root_window_.get();
16}
17
18int MirrorWindowTestApi::GetCurrentCursorType() const {
19  return Shell::GetInstance()->mirror_window_controller()->current_cursor_type_;
20}
21
22const gfx::Point& MirrorWindowTestApi::GetCursorHotPoint() const {
23  return Shell::GetInstance()->mirror_window_controller()->hot_point_;
24}
25
26const aura::Window* MirrorWindowTestApi::GetCursorWindow() const {
27  return Shell::GetInstance()->mirror_window_controller()->cursor_window_;
28}
29
30}  // namespace test
31}  // namespace ash
32