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

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: rebase Created 3 years, 10 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 | « ui/wm/BUILD.gn ('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
index acc6a46d5b5437022d0db6c58eeb87a8195e670b..4b987fcb2e18c40b3905736cc6f1ed84a85f9f2e 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,15 @@ 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 void ConvertRectToScreen(const aura::Window* window, gfx::Rect* rect);
+
+// Converts |rect| from virtual screen coordinates to the |window|'s
+// coordinates.
+WM_EXPORT void ConvertRectFromScreen(const aura::Window* window,
+ gfx::Rect* rect_in_screen);
+
} // namespace wm
#endif // UI_WM_CORE_COORDINATE_CONVERSION_H_
« no previous file with comments | « ui/wm/BUILD.gn ('k') | ui/wm/core/coordinate_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698