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

Unified Diff: ui/wm/core/coordinate_conversion.h

Issue 425363002: Moving coordinate conversion methods from ash/wm to ui/wm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes Created 6 years, 4 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 | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | ui/wm/core/coordinate_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/coordinate_conversion.h
diff --git a/ui/wm/core/coordinate_conversion.h b/ui/wm/core/coordinate_conversion.h
new file mode 100644
index 0000000000000000000000000000000000000000..acc6a46d5b5437022d0db6c58eeb87a8195e670b
--- /dev/null
+++ b/ui/wm/core/coordinate_conversion.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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 UI_WM_CORE_COORDINATE_CONVERSION_H_
+#define UI_WM_CORE_COORDINATE_CONVERSION_H_
+
+#include "ui/wm/wm_export.h"
+
+namespace aura {
+class Window;
+} // namespace aura
+
+namespace gfx {
+class Point;
+} // namespace gfx
+
+namespace wm {
+
+// Converts the |point| from a given |window|'s coordinates into the screen
+// coordinates.
+WM_EXPORT void ConvertPointToScreen(const aura::Window* window,
+ gfx::Point* point);
+
+// Converts the |point| from the screen coordinates to a given |window|'s
+// coordinates.
+WM_EXPORT void ConvertPointFromScreen(const aura::Window* window,
+ gfx::Point* point_in_screen);
+
+} // namespace wm
+
+#endif // UI_WM_CORE_COORDINATE_CONVERSION_H_
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | ui/wm/core/coordinate_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698