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

Side by Side Diff: ui/views/layout/layout_manager.h

Issue 15071002: WIP - loop in LayoutManager for preferred size changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scoped layouter 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/layout/box_layout.cc ('k') | ui/views/layout/layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_MANAGER_H_ 5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_MANAGER_H_
6 #define UI_VIEWS_LAYOUT_LAYOUT_MANAGER_H_ 6 #define UI_VIEWS_LAYOUT_LAYOUT_MANAGER_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Returns the preferred height for the specified width. The default 47 // Returns the preferred height for the specified width. The default
48 // implementation returns the value from GetPreferredSize. 48 // implementation returns the value from GetPreferredSize.
49 virtual int GetPreferredHeightForWidth(View* host, int width); 49 virtual int GetPreferredHeightForWidth(View* host, int width);
50 50
51 // Notification that a view has been added. 51 // Notification that a view has been added.
52 virtual void ViewAdded(View* host, View* view); 52 virtual void ViewAdded(View* host, View* view);
53 53
54 // Notification that a view has been removed. 54 // Notification that a view has been removed.
55 virtual void ViewRemoved(View* host, View* view); 55 virtual void ViewRemoved(View* host, View* view);
56
57 // FIXME
58 virtual void OnChildPreferredSizeChanged(View* host, View* child);
59
60 protected:
61 void HostPreferredSizeShouldChange(View* host);
56 }; 62 };
57 63
58 } // namespace views 64 } // namespace views
59 65
60 #endif // UI_VIEWS_LAYOUT_LAYOUT_MANAGER_H_ 66 #endif // UI_VIEWS_LAYOUT_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/views/layout/box_layout.cc ('k') | ui/views/layout/layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698