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

Unified Diff: chrome/browser/chromeos/status/status_area_view.cc

Issue 8932001: Update widget size from StatusAreaView::Layout() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/status_area_view.cc
diff --git a/chrome/browser/chromeos/status/status_area_view.cc b/chrome/browser/chromeos/status/status_area_view.cc
index 5f67535a7d0faa5729df7d7762fb5101f4bb54f3..0a11d9c4e01dec0993e712766f5d7b59549171b0 100644
--- a/chrome/browser/chromeos/status/status_area_view.cc
+++ b/chrome/browser/chromeos/status/status_area_view.cc
@@ -88,6 +88,10 @@ void StatusAreaView::Layout() {
cur_x += cur_size.width() + kSeparation;
}
}
+#if defined(USE_AURA)
+ if (GetWidget())
sky 2011/12/13 16:40:41 This makes it easy to get stuck in a loop. Can we
stevenjb 2011/12/14 02:10:51 We already do; I will override PreferredSizeChange
+ GetWidget()->SetSize(GetPreferredSize());
+#endif
}
void StatusAreaView::ChildPreferredSizeChanged(View* child) {
@@ -96,10 +100,6 @@ void StatusAreaView::ChildPreferredSizeChanged(View* child) {
// BrowserView know to relayout, which will reset the bounds of this view.
Layout();
PreferredSizeChanged();
-#if defined(USE_AURA)
- if (GetWidget())
- GetWidget()->SetSize(GetPreferredSize());
-#endif
}
void StatusAreaView::MakeButtonsActive(bool active) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698