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

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed)

Created:
6 years, 3 months ago by jackhou1
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tdanderson+views_chromium.org, jennb, sadrul, tfarina, jam, Dmitry Titov, dcheng, jochen+watch_chromium.org, darin-cc_chromium.org, jianli, kalyank, mkwst+moarreviews-shell_chromium.org, ben+views_chromium.org, ben+ash_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@win_resizable
Project:
chromium
Visibility:
Public.

Description

Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. There were some cases where we use CanMaximize to determine if minimization should be disabled. They now use CanMinimize: - custom_frame_view_ash - hwnd_message_handler All classes that implement CanMaximize now implement CanMinimize in the same way, so there should no change in behavior. BUG=328241, 341010 Committed: https://crrev.com/3fdb73284d2b947f3a81ebe81501635b220b4dc1 Cr-Commit-Position: refs/heads/master@{#296381}

Patch Set 1 #

Patch Set 2 : custom_frame_view_ash #

Patch Set 3 : hwnd_message_handler #

Total comments: 2

Patch Set 4 : Remove obsolete comment in custom_frame_view_ash #

Patch Set 5 : Sync and rebase. In particular https://codereview.chromium.org/567463002/ #

Total comments: 2

Patch Set 6 : Don't change behavior in NativeAppWindowViews. #

Total comments: 2

Patch Set 7 : Add TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -9 lines) Patch
M ash/frame/caption_buttons/frame_caption_button_container_view_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/frame/caption_buttons/frame_size_button_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/frame/custom_frame_view_ash.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M ash/frame/custom_frame_view_ash_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell/panel_window.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/panel_window.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell/toplevel_window.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/toplevel_window.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell/window_type_launcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/resize_shadow_and_cursor_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/system_gesture_event_filter_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/panels/panel_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/panels/panel_view.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M components/native_app_window/native_app_window_views.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/native_app_window/native_app_window_views.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/browser/shell_views.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/examples/examples_window.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 3 4 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 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget_delegate.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/win/hwnd_message_handler_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
jackhou1
sky, could you take a look at this?
6 years, 3 months ago (2014-09-21 05:51:31 UTC) #2
pkotwicz
Can you please also update WindowState::CanMinimize()
6 years, 3 months ago (2014-09-22 00:32:17 UTC) #3
pkotwicz
https://codereview.chromium.org/583603004/diff/40001/ash/frame/custom_frame_view_ash.cc File ash/frame/custom_frame_view_ash.cc (right): https://codereview.chromium.org/583603004/diff/40001/ash/frame/custom_frame_view_ash.cc#newcode206 ash/frame/custom_frame_view_ash.cc:206: // that the window frame can be minimized if ...
6 years, 3 months ago (2014-09-22 01:09:00 UTC) #5
jackhou1
> Can you please also update WindowState::CanMinimize() I'm not really sure how this should be ...
6 years, 3 months ago (2014-09-22 02:59:48 UTC) #6
sky
LGTM
6 years, 2 months ago (2014-09-22 16:27:18 UTC) #7
jackhou1
pfeldman, please review for OWNERS in content/shell/ jamescook, please review for OWNERS in components/native_app_window/
6 years, 2 months ago (2014-09-23 00:37:01 UTC) #9
James Cook
https://codereview.chromium.org/583603004/diff/80001/components/native_app_window/native_app_window_views.cc File components/native_app_window/native_app_window_views.cc (right): https://codereview.chromium.org/583603004/diff/80001/components/native_app_window/native_app_window_views.cc#newcode222 components/native_app_window/native_app_window_views.cc:222: return true; Is this right? All views app windows ...
6 years, 2 months ago (2014-09-23 00:57:54 UTC) #10
jackhou1
https://codereview.chromium.org/583603004/diff/80001/components/native_app_window/native_app_window_views.cc File components/native_app_window/native_app_window_views.cc (right): https://codereview.chromium.org/583603004/diff/80001/components/native_app_window/native_app_window_views.cc#newcode222 components/native_app_window/native_app_window_views.cc:222: return true; On 2014/09/23 00:57:53, James Cook wrote: > ...
6 years, 2 months ago (2014-09-23 01:28:48 UTC) #11
James Cook
LGTM https://codereview.chromium.org/583603004/diff/100001/components/native_app_window/native_app_window_views.cc File components/native_app_window/native_app_window_views.cc (right): https://codereview.chromium.org/583603004/diff/100001/components/native_app_window/native_app_window_views.cc#newcode222 components/native_app_window/native_app_window_views.cc:222: return CanMaximize(); nit: You might add a TODO ...
6 years, 2 months ago (2014-09-23 16:18:02 UTC) #12
jackhou1
https://codereview.chromium.org/583603004/diff/100001/components/native_app_window/native_app_window_views.cc File components/native_app_window/native_app_window_views.cc (right): https://codereview.chromium.org/583603004/diff/100001/components/native_app_window/native_app_window_views.cc#newcode222 components/native_app_window/native_app_window_views.cc:222: return CanMaximize(); On 2014/09/23 16:18:02, James Cook OOO until ...
6 years, 2 months ago (2014-09-24 00:49:19 UTC) #13
jackhou1
pfeldman, ping +creis in case pfeldman is busy.
6 years, 2 months ago (2014-09-24 00:56:14 UTC) #15
pfeldman
shell lgtm
6 years, 2 months ago (2014-09-24 09:26:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583603004/120001
6 years, 2 months ago (2014-09-24 09:47:27 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001) as 1fec03cd5f4c31de624883eae291555a974c2847
6 years, 2 months ago (2014-09-24 10:25:56 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-09-24 10:26:39 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3fdb73284d2b947f3a81ebe81501635b220b4dc1
Cr-Commit-Position: refs/heads/master@{#296381}

Powered by Google App Engine
This is Rietveld 408576698