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

Unified Diff: ash/frame/custom_frame_view_ash.cc

Issue 554183002: Update the maximize button when size constraints change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update NativeWidgetMac. Created 6 years, 3 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 | « ash/frame/custom_frame_view_ash.h ('k') | ash/wm/panels/panel_frame_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/custom_frame_view_ash.cc
diff --git a/ash/frame/custom_frame_view_ash.cc b/ash/frame/custom_frame_view_ash.cc
index 39d756651f4e788bedcdc02397d25c93c17feb90..450015a32a3256d21b24c3845886d9bdcd4755b3 100644
--- a/ash/frame/custom_frame_view_ash.cc
+++ b/ash/frame/custom_frame_view_ash.cc
@@ -151,6 +151,8 @@ class CustomFrameViewAsh::HeaderView
void UpdateAvatarIcon();
+ void SizeConstraintsChanged();
+
// views::View:
virtual void Layout() OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
@@ -270,6 +272,12 @@ void CustomFrameViewAsh::HeaderView::UpdateAvatarIcon() {
Layout();
}
+void CustomFrameViewAsh::HeaderView::SizeConstraintsChanged() {
+ caption_button_container_->ResetWindowControls();
+ caption_button_container_->UpdateSizeButtonVisibility();
+ Layout();
+}
+
///////////////////////////////////////////////////////////////////////////////
// CustomFrameViewAsh::HeaderView, views::View overrides:
@@ -489,6 +497,10 @@ void CustomFrameViewAsh::UpdateWindowTitle() {
header_view_->SchedulePaintForTitle();
}
+void CustomFrameViewAsh::SizeConstraintsChanged() {
+ header_view_->SizeConstraintsChanged();
+}
+
////////////////////////////////////////////////////////////////////////////////
// CustomFrameViewAsh, views::View overrides:
« no previous file with comments | « ash/frame/custom_frame_view_ash.h ('k') | ash/wm/panels/panel_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698