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_ |