mirror_window_test_api.cc revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
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/aura/root_window_transformer.h"
10#include "ui/gfx/point.h"
11
12namespace ash {
13namespace test {
14
15const aura::RootWindow* MirrorWindowTestApi::GetRootWindow() const {
16  return Shell::GetInstance()->mirror_window_controller()->root_window_.get();
17}
18
19int MirrorWindowTestApi::GetCurrentCursorType() const {
20  return Shell::GetInstance()->mirror_window_controller()->current_cursor_type_;
21}
22
23const gfx::Point& MirrorWindowTestApi::GetCursorHotPoint() const {
24  return Shell::GetInstance()->mirror_window_controller()->hot_point_;
25}
26
27const aura::Window* MirrorWindowTestApi::GetCursorWindow() const {
28  return Shell::GetInstance()->mirror_window_controller()->cursor_window_;
29}
30
31scoped_ptr<aura::RootWindowTransformer>
32MirrorWindowTestApi::CreateCurrentRootWindowTransformer() const {
33  return Shell::GetInstance()->mirror_window_controller()->
34      CreateRootWindowTransformer();
35}
36
37}  // namespace test
38}  // namespace ash
39