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

Unified Diff: ui/views/view.cc

Issue 2230913003: Experimental alignment layout manager using a property on the views Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed AlignAttribute and associated types to FillAttribute Created 4 years, 2 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/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 3cb42dca9dab0b6b57422f07348b4cc15293f3fa..0640d6f495c0244f1aa487171e4f15e39763fc2a 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -105,6 +105,7 @@ View::View()
parent_(NULL),
visible_(true),
enabled_(true),
+ attributes_(this),
notify_enter_exit_on_child_(false),
registered_for_visible_bounds_notification_(false),
needs_layout_(true),
@@ -1858,6 +1859,7 @@ void View::PropagateAddNotifications(
for (int i = 0, count = child_count(); i < count; ++i)
child_at(i)->PropagateAddNotifications(details);
ViewHierarchyChangedImpl(true, details);
+ attributes_.ViewNotification(this);
}
void View::PropagateNativeViewHierarchyChanged() {
@@ -1954,6 +1956,7 @@ void View::BoundsChanged(const gfx::Rect& previous_bounds) {
(*i)->OnVisibleBoundsChanged();
}
}
+ attributes_.ViewNotification(this);
}
// static
« no previous file with comments | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698