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

Unified Diff: athena/wm/coordinate_conversion.h

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.h
diff --git a/athena/wm/coordinate_conversion.h b/athena/wm/coordinate_conversion.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a9329db2c5636253a0e41cb1a64dd773d1d7167
--- /dev/null
+++ b/athena/wm/coordinate_conversion.h
@@ -0,0 +1,30 @@
+// 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.
+
+#ifndef ATHENA_WM_COORDINATE_CONVERSION_H_
+#define ATHENA_WM_COORDINATE_CONVERSION_H_
+
+namespace aura {
+class Window;
+} // namespace aura
+
+namespace gfx {
+class Point;
+class Rect;
+} // namespace gfx
+
+namespace athena {
+// Converts the |point| from a given |window|'s coordinates into the screen
+// coordinates.
+void ConvertPointToScreen(const aura::Window* window,
Jun Mukai 2014/07/25 20:21:29 This file would be great to be in ui/wm/core (or e
oshima 2014/07/25 21:41:10 yep, and consolidate methods (that make sense) ash
mfomitchev 2014/08/05 19:56:57 Done. Created a separate review for ash changes: h
+ gfx::Point* point);
+
+// Converts the |point| from the screen coordinates to a given |window|'s
+// coordinates.
+void ConvertPointFromScreen(const aura::Window* window,
+ gfx::Point* point_in_screen);
+
+} // namespace athena
+
+#endif // ATHENA_WM_COORDINATE_CONVERSION_H_

Powered by Google App Engine
This is Rietveld 408576698