Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2990)

Unified Diff: ash/test/mirror_window_test_api.cc

Issue 15367003: Create a mirror window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/mirror_window_test_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/test/mirror_window_test_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698