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

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: Rebase 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 | « chrome/browser/chromeos/status/status_area_view.h ('k') | 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 03086400bd7a1305af8005632d2423ee7576cebb..30e168e706e31f5afa93c0c1b11c5a51b850da74 100644
--- a/chrome/browser/chromeos/status/status_area_view.cc
+++ b/chrome/browser/chromeos/status/status_area_view.cc
@@ -90,16 +90,20 @@ void StatusAreaView::Layout() {
}
}
+void StatusAreaView::PreferredSizeChanged() {
+#if defined(USE_AURA)
+ if (GetWidget())
+ GetWidget()->SetSize(GetPreferredSize());
+#endif
+ views::AccessiblePaneView::PreferredSizeChanged();
+}
+
void StatusAreaView::ChildPreferredSizeChanged(View* child) {
// When something like the clock menu button's size changes, we need to
// relayout. Also mark that this view's size has changed. This will let
// 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 | « chrome/browser/chromeos/status/status_area_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698