Index: ash/test/mirror_window_test_api.cc |
diff --git a/ash/test/mirror_window_test_api.cc b/ash/test/mirror_window_test_api.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9d331c0ad0249a978591723cfcff0987fb35ef57 |
--- /dev/null |
+++ b/ash/test/mirror_window_test_api.cc |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ash/test/mirror_window_test_api.h" |
+ |
+#include "ash/display/mirror_window_controller.h" |
+#include "ash/shell.h" |
+#include "ui/gfx/point.h" |
+ |
+namespace ash { |
+namespace test { |
+ |
+const aura::RootWindow* MirrorWindowTestApi::GetRootWindow() const { |
+ return Shell::GetInstance()->mirror_window_controller()->root_window_.get(); |
+} |
+ |
+int MirrorWindowTestApi::GetCurrentCursorType() const { |
+ return Shell::GetInstance()->mirror_window_controller()->current_cursor_type_; |
+} |
+ |
+const gfx::Point& MirrorWindowTestApi::GetCursorHotPoint() const { |
+ return Shell::GetInstance()->mirror_window_controller()->hot_point_; |
+} |
+ |
+const aura::Window* MirrorWindowTestApi::GetCursorWindow() const { |
+ return Shell::GetInstance()->mirror_window_controller()->cursor_window_; |
+} |
+ |
+} // namespace test |
+} // namespace ash |