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

Issue 2542493002: Replace kCanMaximize/Minimize/Resize with kResizeBehavior. (Closed)

Created:
4 years ago by msw
Modified:
4 years ago
Reviewers:
sky
CC:
chromium-reviews, alemate+watch_chromium.org, sadrul, tfarina, achuith+watch_chromium.org, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace kCanMaximize/Minimize/Resize with kResizeBehavior. A single property helps mus avoid lots of little IPC calls. Change the default value to allow resize (matches old properties). Add WidgetDelegate::GetResizeBehavior. Nix DesktopWindowTreeHostMus::GetResizeBehaviorFromDelegate. Fix NativeWidgetMus::ConfigurePropertiesForNewWindow casting. (primitive property types should be serialized as int64_t) TODO: Add ui::mojom::kResizeBehaviorAll? TODO: Remove maximize from CreateTestWindowWithDelegateAndType? BUG=669290 TEST=No window resize/min/max behavior changes or regressions. R=sky@chromium.org Committed: https://crrev.com/b00a80d7cbcb9dc12278a13bd56b41a008cb978b Cr-Commit-Position: refs/heads/master@{#435395}

Patch Set 1 #

Patch Set 2 : Cleanup, fixes, and refinements. #

Total comments: 4

Patch Set 3 : Use aura::PropertyConverter::PrimitiveType fix deps. #

Patch Set 4 : Fix int->bool compile issue. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -135 lines) Patch
M ash/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ash/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M ash/aura/wm_window_aura.cc View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M ash/common/wm/window_state.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/non_client_frame_controller.cc View 1 1 chunk +6 lines, -9 lines 0 comments Download
M ash/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/ash_test_base.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M ash/wm/ash_focus_rules_unittest.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager_unittest.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M ash/wm/lock_layout_manager_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M ash/wm/toplevel_window_event_handler_unittest.cc View 1 5 chunks +9 lines, -5 lines 0 comments Download
M ash/wm/window_state_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_event_handler_unittest.cc View 1 8 chunks +15 lines, -7 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_web_dialog_browsertest.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/accelerator_commands_browsertest.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 chunk +0 lines, -9 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 2 chunks +1 line, -4 lines 0 comments Download
M ui/aura/test/test_windows.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 2 chunks +4 lines, -26 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 4 chunks +19 lines, -15 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc View 1 4 chunks +7 lines, -3 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_window_event_filter.cc View 1 4 chunks +7 lines, -3 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 3 chunks +8 lines, -9 lines 0 comments Download
M ui/views/widget/native_widget_aura_unittest.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M ui/views/widget/widget_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget_delegate.cc View 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
msw
Hey Scott, please take a look; thanks!
4 years ago (2016-11-30 01:27:07 UTC) #4
sky
LGTM https://codereview.chromium.org/2542493002/diff/20001/ash/wm/workspace/workspace_window_resizer_unittest.cc File ash/wm/workspace/workspace_window_resizer_unittest.cc (right): https://codereview.chromium.org/2542493002/diff/20001/ash/wm/workspace/workspace_window_resizer_unittest.cc#newcode556 ash/wm/workspace/workspace_window_resizer_unittest.cc:556: ui::mojom::kResizeBehaviorCanResize | In some other cases you don't ...
4 years ago (2016-11-30 03:17:28 UTC) #9
msw
https://codereview.chromium.org/2542493002/diff/20001/ash/wm/workspace/workspace_window_resizer_unittest.cc File ash/wm/workspace/workspace_window_resizer_unittest.cc (right): https://codereview.chromium.org/2542493002/diff/20001/ash/wm/workspace/workspace_window_resizer_unittest.cc#newcode556 ash/wm/workspace/workspace_window_resizer_unittest.cc:556: ui::mojom::kResizeBehaviorCanResize | On 2016/11/30 03:17:28, sky wrote: > In ...
4 years ago (2016-11-30 18:16:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542493002/40001
4 years ago (2016-11-30 18:17:12 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/305967) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years ago (2016-11-30 18:59:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542493002/60001
4 years ago (2016-11-30 19:08:47 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-30 20:17:38 UTC) #21
commit-bot: I haz the power
4 years ago (2016-11-30 20:20:30 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b00a80d7cbcb9dc12278a13bd56b41a008cb978b
Cr-Commit-Position: refs/heads/master@{#435395}

Powered by Google App Engine
This is Rietveld 408576698