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

Unified Diff: ui/views/view.h

Issue 2897533003: Change default ink drop center points to center of contents bounds (Closed)
Patch Set: fix compile Created 3 years, 7 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/views/animation/ink_drop_host_view.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 9f1ca8b509665fda2a4b73d00ff2ffc2fc247acb..feb433c0f62ee8dd992e21eed5c9d21958b036e7 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -378,6 +378,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// implementation.
int GetMirroredXForRect(const gfx::Rect& rect) const;
+ // Given a rectangle specified in this View's coordinate system, the function
+ // computes the mirrored rectangle.
+ gfx::Rect GetMirroredRect(const gfx::Rect& rect) const;
+
// Given the X coordinate of a point inside the View, this function returns
// the mirrored X coordinate of the point if the View's UI layout is
// right-to-left. If the layout is left-to-right, the same X coordinate is
« no previous file with comments | « ui/views/animation/ink_drop_host_view.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698