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