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

Unified Diff: ui/views/view.h

Issue 15071002: WIP - loop in LayoutManager for preferred size changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 306e3a9a13545080abae056c6cab14ea8545c967..e32f00c8655233d220a14426e27f1ad1a96e89c2 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -943,11 +943,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Size and disposition ------------------------------------------------------
// Override to be notified when the bounds of the view have changed.
- virtual void OnBoundsChanged(const gfx::Rect& previous_bounds);
+ virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) {}
// Called when the preferred size of a child view changed. This gives the
// parent an opportunity to do a fresh layout if that makes sense.
- virtual void ChildPreferredSizeChanged(View* child) {}
+ virtual void ChildPreferredSizeChanged(View* child);
// Called when the visibility of a child view changed. This gives the parent
// an opportunity to do a fresh layout if that makes sense.
@@ -1168,6 +1168,7 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
friend class internal::PostEventDispatchHandler;
friend class internal::RootView;
friend class FocusManager;
+ friend class LayoutManager;
friend class Widget;
// Painting -----------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698