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

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

Issue 2660873002: Move two utility functions from ash/screen_util.h to ui/wm/core/coordinate_conversion.h (Closed)
Patch Set: Created 3 years, 11 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: ui/wm/core/coordinate_conversion.h
diff --git a/ui/wm/core/coordinate_conversion.h b/ui/wm/core/coordinate_conversion.h
index acc6a46d5b5437022d0db6c58eeb87a8195e670b..a921ca4708a865491786c32a2c0ee6c233be6dbd 100644
--- a/ui/wm/core/coordinate_conversion.h
+++ b/ui/wm/core/coordinate_conversion.h
@@ -13,6 +13,7 @@ class Window;
namespace gfx {
class Point;
+class Rect;
} // namespace gfx
namespace wm {
@@ -27,6 +28,16 @@ WM_EXPORT void ConvertPointToScreen(const aura::Window* window,
WM_EXPORT void ConvertPointFromScreen(const aura::Window* window,
gfx::Point* point_in_screen);
+// Converts |rect| from |window|'s coordinates to the virtual screen
+// coordinates.
+WM_EXPORT gfx::Rect ConvertRectToScreen(const aura::Window* window,
+ const gfx::Rect& rect);
sadrul 2017/01/30 19:46:09 To be consistent with the fns above, would it make
yhanada 2017/01/31 06:34:34 Changed to that.
+
+// Converts |rect| from virtual screen coordinates to the |window|'s
+// coordinates.
+WM_EXPORT gfx::Rect ConvertRectFromScreen(const aura::Window* window,
+ const gfx::Rect& rect);
sadrul 2017/01/30 19:46:09 ditto
yhanada 2017/01/31 06:34:34 Done.
+
} // namespace wm
#endif // UI_WM_CORE_COORDINATE_CONVERSION_H_

Powered by Google App Engine
This is Rietveld 408576698