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

Issue 554183002: Update the maximize button when size constraints change. (Closed)

Created:
6 years, 3 months ago by jackhou1
Modified:
6 years, 3 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tdanderson+views_chromium.org, sadrul, tfarina, chromium-apps-reviews_chromium.org, kalyank, ben+views_chromium.org, ben+ash_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update the maximize button when size constraints change. Previously, the maximize button would be hidden if the window is created with a maxWidth or maxHeight, or non-resizable. Once the size constraint is removed, the maximize button remains hidden. Similarly, a size constraint that is applied after the window is created would not hide the maximize button. This adds Widget::OnSizeConstraintsChanged which causes the native widget to update the window's properties, and the non client view to update the visibility of the maximize button. BUG=351181, 412241 Committed: https://crrev.com/ec7b3d4ccdd2c2dfdcab68557ca39e5f46099d17 Cr-Commit-Position: refs/heads/master@{#294347}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add NonClientView::SizeConstraintsChanged #

Patch Set 3 : Make NonClientFrameView::SizeConstraintsChanged pure virtual and update subclasses. #

Patch Set 4 : Missed a couple. #

Patch Set 5 : Sync and rebase #

Patch Set 6 : Missed AthenaFrameView. #

Patch Set 7 : Missed GlassBrowserFrameView. #

Total comments: 2

Patch Set 8 : Update NativeWidgetMac. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -22 lines) Patch
M apps/ui/views/app_window_frame_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M apps/ui/views/native_app_window_views.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/frame/custom_frame_view_ash.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ash/frame/custom_frame_view_ash.cc View 1 3 chunks +12 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_frame_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/panels/panel_frame_view.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/system_gesture_event_filter_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M athena/activity/activity_frame_view.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M athena/activity/activity_frame_view.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M athena/main/athena_frame_view.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/message_center/message_center_frame_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/message_center/message_center_frame_view.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/panels/panel_frame_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/panels/panel_frame_view.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 2 chunks +8 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 2 chunks +10 lines, -6 lines 0 comments Download
M ui/views/widget/native_widget_mac.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_private.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/window/custom_frame_view.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M ui/views/window/custom_frame_view.cc View 1 4 chunks +12 lines, -9 lines 0 comments Download
M ui/views/window/native_frame_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/window/native_frame_view.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/window/non_client_view.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/window/non_client_view.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
jackhou1
sky, could you please review this?
6 years, 3 months ago (2014-09-09 07:39:27 UTC) #2
sky
https://codereview.chromium.org/554183002/diff/1/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/554183002/diff/1/ui/views/window/custom_frame_view.cc#newcode184 ui/views/window/custom_frame_view.cc:184: void CustomFrameView::ResetWindowControls() { Currently ResetWindowControls is: // Tells the ...
6 years, 3 months ago (2014-09-09 15:42:33 UTC) #3
jackhou1
https://codereview.chromium.org/554183002/diff/1/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/554183002/diff/1/ui/views/window/custom_frame_view.cc#newcode184 ui/views/window/custom_frame_view.cc:184: void CustomFrameView::ResetWindowControls() { On 2014/09/09 15:42:32, sky wrote: > ...
6 years, 3 months ago (2014-09-10 00:49:15 UTC) #4
sky
As the majority of the functions are pure virtual please keep the new one pure ...
6 years, 3 months ago (2014-09-10 14:35:57 UTC) #5
jackhou1
tapted, could you review for OWNERS in apps/
6 years, 3 months ago (2014-09-11 02:39:21 UTC) #7
tapted
ooh nice - apps lgtm https://codereview.chromium.org/554183002/diff/120001/ui/views/widget/native_widget_aura.h File ui/views/widget/native_widget_aura.h (right): https://codereview.chromium.org/554183002/diff/120001/ui/views/widget/native_widget_aura.h#newcode138 ui/views/widget/native_widget_aura.h:138: virtual void OnSizeConstraintsChanged() OVERRIDE; ...
6 years, 3 months ago (2014-09-11 05:22:22 UTC) #8
jackhou1
https://codereview.chromium.org/554183002/diff/120001/ui/views/widget/native_widget_aura.h File ui/views/widget/native_widget_aura.h (right): https://codereview.chromium.org/554183002/diff/120001/ui/views/widget/native_widget_aura.h#newcode138 ui/views/widget/native_widget_aura.h:138: virtual void OnSizeConstraintsChanged() OVERRIDE; On 2014/09/11 05:22:22, tapted wrote: ...
6 years, 3 months ago (2014-09-11 06:28:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/554183002/140001
6 years, 3 months ago (2014-09-11 06:29:56 UTC) #11
commit-bot: I haz the power
Committed patchset #8 (id:140001) as b61c836a4cb1345bf63fc15cee439d0370bddd64
6 years, 3 months ago (2014-09-11 07:34:39 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 07:40:20 UTC) #13
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ec7b3d4ccdd2c2dfdcab68557ca39e5f46099d17
Cr-Commit-Position: refs/heads/master@{#294347}

Powered by Google App Engine
This is Rietveld 408576698