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

Issue 581953002: [Win] Update HWND style when SizeConstraintsChanged. (Closed)

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

Description

[Win] Update HWND style when SizeConstraintsChanged. Previously, caption buttons were set at creation time. With this CL, minimize and maximize buttons can be added and removed throughout the lifetime of a window. BUG=412241 Committed: https://crrev.com/5150e6e0fdab64a3fe08d63646121958048b78b1 Cr-Commit-Position: refs/heads/master@{#296617}

Patch Set 1 #

Patch Set 2 : Fix on Linux. #

Total comments: 2

Patch Set 3 : Sync and rebase #

Patch Set 4 : Update to make use of CanMinimize. #

Total comments: 2

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -8 lines) Patch
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget_hwnd_utils.cc View 1 2 3 1 chunk +13 lines, -8 lines 0 comments Download
M ui/views/win/hwnd_message_handler.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
jackhou1
sky, could you please review this? Also, would you know if there's an overarching reason ...
6 years, 3 months ago (2014-09-18 08:42:07 UTC) #2
sky
https://codereview.chromium.org/581953002/diff/20001/ui/views/widget/widget_hwnd_utils.cc File ui/views/widget/widget_hwnd_utils.cc (right): https://codereview.chromium.org/581953002/diff/20001/ui/views/widget/widget_hwnd_utils.cc#newcode89 ui/views/widget/widget_hwnd_utils.cc:89: *style &= ~(WS_MINIMIZEBOX | WS_MAXIMIZEBOX); Why remove the minimize ...
6 years, 3 months ago (2014-09-18 14:27:10 UTC) #3
jackhou1
https://codereview.chromium.org/581953002/diff/20001/ui/views/widget/widget_hwnd_utils.cc File ui/views/widget/widget_hwnd_utils.cc (right): https://codereview.chromium.org/581953002/diff/20001/ui/views/widget/widget_hwnd_utils.cc#newcode89 ui/views/widget/widget_hwnd_utils.cc:89: *style &= ~(WS_MINIMIZEBOX | WS_MAXIMIZEBOX); On 2014/09/18 14:27:09, sky ...
6 years, 3 months ago (2014-09-18 23:28:35 UTC) #6
sky
+ananta I'm sure we could disable the maximize menu item if worse comes to worse.
6 years, 3 months ago (2014-09-19 02:49:13 UTC) #8
ananta
On 2014/09/19 02:49:13, sky wrote: > +ananta > I'm sure we could disable the maximize ...
6 years, 3 months ago (2014-09-20 01:16:22 UTC) #9
jackhou1
On 2014/09/20 01:16:22, ananta wrote: > On 2014/09/19 02:49:13, sky wrote: > > +ananta > ...
6 years, 3 months ago (2014-09-20 02:48:53 UTC) #10
jackhou1
sky, ananta, PTAL Both minimize and maximize buttons now update based on WidgetDelegate::Can[Min|Max]imize.
6 years, 3 months ago (2014-09-24 11:40:34 UTC) #11
sky
LGTM https://codereview.chromium.org/581953002/diff/60001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/581953002/diff/60001/ui/views/win/hwnd_message_handler.cc#newcode878 ui/views/win/hwnd_message_handler.cc:878: style &= ~WS_THICKFRAME | WS_MAXIMIZEBOX; Can you put ...
6 years, 3 months ago (2014-09-24 15:33:00 UTC) #12
ananta
On 2014/09/20 01:16:22, ananta wrote: > On 2014/09/19 02:49:13, sky wrote: > > +ananta > ...
6 years, 3 months ago (2014-09-24 18:13:06 UTC) #13
jackhou1
On 2014/09/24 18:13:06, ananta wrote: > On 2014/09/20 01:16:22, ananta wrote: > > On 2014/09/19 ...
6 years, 3 months ago (2014-09-24 23:30:27 UTC) #14
jackhou1
https://codereview.chromium.org/581953002/diff/60001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/581953002/diff/60001/ui/views/win/hwnd_message_handler.cc#newcode878 ui/views/win/hwnd_message_handler.cc:878: style &= ~WS_THICKFRAME | WS_MAXIMIZEBOX; On 2014/09/24 15:33:00, sky ...
6 years, 3 months ago (2014-09-24 23:30:35 UTC) #15
ananta
lgtm
6 years, 3 months ago (2014-09-24 23:57:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/581953002/80001
6 years, 3 months ago (2014-09-25 00:12:30 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 9e5983211a9decaa12b46284aa6701f821ee8681
6 years, 2 months ago (2014-09-25 01:48:22 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 01:49:01 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5150e6e0fdab64a3fe08d63646121958048b78b1
Cr-Commit-Position: refs/heads/master@{#296617}

Powered by Google App Engine
This is Rietveld 408576698