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

Unified Diff: mojo/services/view_manager/view_coordinate_conversions.h

Issue 1092033003: Pulls display related changes from mojo to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: mojo/services/view_manager/view_coordinate_conversions.h
diff --git a/mojo/services/view_manager/view_coordinate_conversions.h b/mojo/services/view_manager/view_coordinate_conversions.h
index 5c341833d1b99535f66a50ea7381b88f61ba53a5..9f62eec37ccdefc93d51520169887b0d7a95e221 100644
--- a/mojo/services/view_manager/view_coordinate_conversions.h
+++ b/mojo/services/view_manager/view_coordinate_conversions.h
@@ -6,6 +6,8 @@
#define SERVICES_VIEW_MANAGER_VIEW_COORDINATE_CONVERSIONS_H_
namespace gfx {
+class Point;
+class PointF;
class Rect;
}
@@ -13,6 +15,15 @@ namespace view_manager {
class ServerView;
+// Converts |point| from the coordinates of |from| to the coordinates of |to|.
+// |from| and |to| must be an ancestors or descendants of each other.
+gfx::Point ConvertPointBetweenViews(const ServerView* from,
+ const ServerView* to,
+ const gfx::Point& point);
+gfx::PointF ConvertPointFBetweenViews(const ServerView* from,
+ const ServerView* to,
+ const gfx::PointF& point);
+
// Converts |rect| from the coordinates of |from| to the coordinates of |to|.
// |from| and |to| must be an ancestors or descendants of each other.
gfx::Rect ConvertRectBetweenViews(const ServerView* from,
« no previous file with comments | « mojo/services/view_manager/test_server_view_delegate.cc ('k') | mojo/services/view_manager/view_coordinate_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698