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

Unified Diff: ui/views/view.h

Issue 2648583003: Handle floating point coordinates from ozone to exosphere (Closed)
Patch Set: added F variant to screen position client. fixed exo tests. 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/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 147785c6a86b255dc5e279a35c33d7bb0b7aa76b..a016c0dec03ffcf7546dec6c98c7c8c74de6600d 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -475,7 +475,9 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
static void ConvertPointToTarget(const View* source,
const View* target,
gfx::Point* point);
-
+ static void ConvertPointToTargetF(const View* source,
+ const View* target,
+ gfx::PointF* point);
// Convert |rect| from the coordinate system of |source| to the coordinate
// system of |target|.
//
@@ -1348,12 +1350,15 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// system using necessary transformations. Returns whether the point was
// successfully converted to the ancestor's coordinate system.
bool ConvertPointForAncestor(const View* ancestor, gfx::Point* point) const;
+ bool ConvertPointForAncestorF(const View* ancestor, gfx::PointF* point) const;
// Convert a point in the ancestor's coordinate system to the view's
// coordinate system using necessary transformations. Returns whether the
// point was successfully converted from the ancestor's coordinate system
// to the view's coordinate system.
bool ConvertPointFromAncestor(const View* ancestor, gfx::Point* point) const;
+ bool ConvertPointFromAncestorF(const View* ancestor,
+ gfx::PointF* point) const;
// Convert a rect in the view's coordinate to an ancestor view's coordinate
// system using necessary transformations. Returns whether the rect was
« ui/compositor/layer.cc ('K') | « ui/events/x/events_x.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698