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

Unified Diff: athena/wm/coordinate_conversion.cc

Issue 420603011: Split Screen mode implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_view
Patch Set: Created 6 years, 5 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
Index: athena/wm/coordinate_conversion.cc
diff --git a/athena/wm/coordinate_conversion.cc b/athena/wm/coordinate_conversion.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c853bfcfcf4ab4cbe8411ee93476eebb3eaa501d
--- /dev/null
+++ b/athena/wm/coordinate_conversion.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 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 "athena/wm/coordinate_conversion.h"
+
+#include "ui/aura/client/screen_position_client.h"
+#include "ui/gfx/point.h"
+
+namespace athena {
+
+void ConvertPointToScreen(const aura::Window* window, gfx::Point* point) {
+ CHECK(aura::client::GetScreenPositionClient(window->GetRootWindow()));
+ aura::client::GetScreenPositionClient(window->GetRootWindow())->
+ ConvertPointToScreen(window, point);
+}
+
+void ConvertPointFromScreen(const aura::Window* window,
+ gfx::Point* point_in_screen) {
+ aura::client::GetScreenPositionClient(window->GetRootWindow())->
+ ConvertPointFromScreen(window, point_in_screen);
+}
+
+} // namespace athena

Powered by Google App Engine
This is Rietveld 408576698