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

Unified Diff: ui/views/view.h

Issue 819273003: View: Resizing a layer in RTL now correctly repositions its children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')
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 474ae01b56051626849f63dcfec9369f45b9c3ac..ede1e4e8358d76b25faa8bf56c674654e084f1ab 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1293,8 +1293,14 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// VisibilityChanged().
void VisibilityChangedImpl(View* starting_from, bool is_visible);
+ // Called when the logical or just the mirrored bounds have changed. Note:
+ // |previous_bounds| may be the same as |bounds_| if the logical bounds have
+ // not changed, but the mirrored bounds have.
+ void MirroredBoundsChanged(const gfx::Rect& previous_bounds);
+
// Responsible for propagating bounds change notifications to relevant
- // views.
+ // views. Called only if the actual (logical) bounds have changed (not just if
+ // the mirrored bounds have changed due to a parent's size changing).
void BoundsChanged(const gfx::Rect& previous_bounds);
// Visible bounds notification registration.
« no previous file with comments | « no previous file | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698