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

Issue 594383002: Change behaviour of the Alt-] and Alt-[ keys so that it cycles through SnapLeft/SnapRight to DockLe… (Closed)

Created:
6 years, 3 months ago by dtapuska
Modified:
6 years, 2 months ago
Reviewers:
varkha, oshima
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, mazda+watch_chromium.org, kalyank, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@event
Project:
chromium
Visibility:
Public.

Description

Change behaviour of the Alt-] and Alt-[ keys so that it cycles through SnapLeft/SnapRight to DockLeft/DockRight to Restore. BUG=344597 Committed: https://crrev.com/c6e5e38c6843add6e7aa5d427958164d0550f20b Cr-Commit-Position: refs/heads/master@{#298084}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Change behaviour of the Alt-] and Alt-[ keys so that it cycles #

Patch Set 3 : Fix a couple of minor issues with brackets #

Patch Set 4 : Address comments #

Patch Set 5 : Address DockLeft/DockRight issues #

Total comments: 24

Patch Set 6 : Upload new patch based on dependant change's API name change #

Total comments: 2

Patch Set 7 : Address varkha's comments on patch set 5 #

Total comments: 5

Patch Set 8 : Address varkha's comments in #7 #

Total comments: 10

Patch Set 9 : Address varkha's comments in #8 #

Total comments: 6

Patch Set 10 : Use Compound Events for snap/dock as per oshima's request #

Total comments: 16

Patch Set 11 : Add uma events, change toggle->cycle #

Total comments: 3

Patch Set 12 : Add comment regarding why we skip recording some docked uma actions #

Total comments: 2

Patch Set 13 : Change comment #

Patch Set 14 : Adjust comment #

Total comments: 2

Patch Set 15 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -29 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -12 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +170 lines, -4 lines 0 comments Download
M ash/accelerators/accelerator_table.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/default_state.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +108 lines, -0 lines 0 comments Download
M ash/wm/dock/dock_types.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +14 lines, -0 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +20 lines, -7 lines 0 comments Download
M ash/wm/lock_window_state.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_state.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_layout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/wm_event.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (3 generated)
varkha
I think it is quite close, just need to make sure nothing is lost in ...
6 years, 3 months ago (2014-09-24 03:16:23 UTC) #2
dtapuska
https://codereview.chromium.org/594383002/diff/1/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/594383002/diff/1/ash/accelerators/accelerator_controller.cc#newcode517 ash/accelerators/accelerator_controller.cc:517: return 0; On 2014/09/24 03:16:22, varkha wrote: > s/0/NULL ...
6 years, 2 months ago (2014-09-25 23:27:09 UTC) #4
varkha
Mostly nits at this point - Chrome style is a bit picky. https://codereview.chromium.org/594383002/diff/80001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc ...
6 years, 2 months ago (2014-09-29 21:04:35 UTC) #5
dtapuska
https://codereview.chromium.org/594383002/diff/80001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/594383002/diff/80001/ash/accelerators/accelerator_controller.cc#newcode589 ash/accelerators/accelerator_controller.cc:589: bool HandleWindowSnapOrDock(int action) { On 2014/09/29 21:04:34, varkha wrote: ...
6 years, 2 months ago (2014-09-30 14:40:50 UTC) #6
varkha
Again, nits at this point. Please see if you can rebase this on top of ...
6 years, 2 months ago (2014-09-30 20:31:04 UTC) #7
dtapuska
https://codereview.chromium.org/594383002/diff/120001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/594383002/diff/120001/ash/accelerators/accelerator_controller.cc#newcode630 ash/accelerators/accelerator_controller.cc:630: ::wm::WINDOW_ANIMATION_TYPE_BOUNCE); On 2014/09/30 20:31:03, varkha wrote: > nit: align ...
6 years, 2 months ago (2014-10-01 15:02:16 UTC) #8
varkha
https://codereview.chromium.org/594383002/diff/140001/ash/wm/dock/docked_window_layout_manager.h File ash/wm/dock/docked_window_layout_manager.h (right): https://codereview.chromium.org/594383002/diff/140001/ash/wm/dock/docked_window_layout_manager.h#newcode306 ash/wm/dock/docked_window_layout_manager.h:306: // The preferred alignment of the next window to ...
6 years, 2 months ago (2014-10-01 19:08:51 UTC) #9
dtapuska
https://codereview.chromium.org/594383002/diff/140001/ash/wm/dock/docked_window_layout_manager.h File ash/wm/dock/docked_window_layout_manager.h (right): https://codereview.chromium.org/594383002/diff/140001/ash/wm/dock/docked_window_layout_manager.h#newcode306 ash/wm/dock/docked_window_layout_manager.h:306: // The preferred alignment of the next window to ...
6 years, 2 months ago (2014-10-01 20:17:42 UTC) #10
varkha
LGTM for ash/wm and general concept. This still needs https://codereview.chromium.org/597683003/ to land first.
6 years, 2 months ago (2014-10-01 20:37:13 UTC) #11
oshima
https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc#newcode507 ash/accelerators/accelerator_controller.cc:507: DockedWindowLayoutManager* GetDockedWindowLayoutManager() could you please define WM_EVENT_TOGGLE_SNAP_DOCK and move ...
6 years, 2 months ago (2014-10-01 23:39:24 UTC) #12
dtapuska
https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc#newcode507 ash/accelerators/accelerator_controller.cc:507: DockedWindowLayoutManager* GetDockedWindowLayoutManager() On 2014/10/01 23:39:24, oshima wrote: > could ...
6 years, 2 months ago (2014-10-02 15:06:11 UTC) #13
oshima
On 2014/10/02 15:06:11, Dave Tapuska wrote: > https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc > File ash/accelerators/accelerator_controller.cc (right): > > https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc#newcode507 ...
6 years, 2 months ago (2014-10-02 17:39:43 UTC) #14
dtapuska
https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/594383002/diff/160001/ash/accelerators/accelerator_controller.cc#newcode507 ash/accelerators/accelerator_controller.cc:507: DockedWindowLayoutManager* GetDockedWindowLayoutManager() On 2014/10/01 23:39:24, oshima wrote: > could ...
6 years, 2 months ago (2014-10-02 21:05:01 UTC) #15
oshima
lgtm with nits https://codereview.chromium.org/594383002/diff/180001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/594383002/diff/180001/ash/wm/default_state.cc#newcode69 ash/wm/default_state.cc:69: { nit: move { to previous ...
6 years, 2 months ago (2014-10-02 21:58:42 UTC) #16
varkha
No real implementation issues left but UMA needs to be recorded for all docked transitions. ...
6 years, 2 months ago (2014-10-02 22:17:59 UTC) #17
dtapuska
https://codereview.chromium.org/594383002/diff/180001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/594383002/diff/180001/ash/wm/default_state.cc#newcode69 ash/wm/default_state.cc:69: { On 2014/10/02 21:58:41, oshima wrote: > nit: move ...
6 years, 2 months ago (2014-10-03 15:44:59 UTC) #18
varkha
https://codereview.chromium.org/594383002/diff/200001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/594383002/diff/200001/ash/wm/dock/docked_window_layout_manager.cc#newcode707 ash/wm/dock/docked_window_layout_manager.cc:707: if (event_source_ != DOCKED_ACTION_SOURCE_UNKNOWN) I think it is better ...
6 years, 2 months ago (2014-10-03 17:07:26 UTC) #19
varkha
slgtm https://codereview.chromium.org/594383002/diff/200001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/594383002/diff/200001/ash/wm/dock/docked_window_layout_manager.cc#newcode707 ash/wm/dock/docked_window_layout_manager.cc:707: if (event_source_ != DOCKED_ACTION_SOURCE_UNKNOWN) On 2014/10/03 17:07:26, varkha ...
6 years, 2 months ago (2014-10-03 17:13:50 UTC) #20
dtapuska
https://codereview.chromium.org/594383002/diff/200001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/594383002/diff/200001/ash/wm/dock/docked_window_layout_manager.cc#newcode707 ash/wm/dock/docked_window_layout_manager.cc:707: if (event_source_ != DOCKED_ACTION_SOURCE_UNKNOWN) On 2014/10/03 17:13:50, varkha wrote: ...
6 years, 2 months ago (2014-10-03 17:17:15 UTC) #21
varkha
https://codereview.chromium.org/594383002/diff/220001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/594383002/diff/220001/ash/wm/dock/docked_window_layout_manager.cc#newcode710 ash/wm/dock/docked_window_layout_manager.cc:710: // or docked windows. Maybe shorten it a bit ...
6 years, 2 months ago (2014-10-03 17:24:36 UTC) #22
dtapuska
https://codereview.chromium.org/594383002/diff/220001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/594383002/diff/220001/ash/wm/dock/docked_window_layout_manager.cc#newcode710 ash/wm/dock/docked_window_layout_manager.cc:710: // or docked windows. On 2014/10/03 17:24:36, varkha wrote: ...
6 years, 2 months ago (2014-10-03 17:32:50 UTC) #23
varkha
https://codereview.chromium.org/594383002/diff/260001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/594383002/diff/260001/ash/wm/dock/docked_window_layout_manager.cc#newcode708 ash/wm/dock/docked_window_layout_manager.cc:708: // are handled in FinishDragging nit: period at the ...
6 years, 2 months ago (2014-10-03 17:42:12 UTC) #24
dtapuska
https://codereview.chromium.org/594383002/diff/260001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/594383002/diff/260001/ash/wm/dock/docked_window_layout_manager.cc#newcode708 ash/wm/dock/docked_window_layout_manager.cc:708: // are handled in FinishDragging On 2014/10/03 17:42:12, varkha ...
6 years, 2 months ago (2014-10-03 19:06:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594383002/280001
6 years, 2 months ago (2014-10-03 20:05:20 UTC) #27
commit-bot: I haz the power
Committed patchset #15 (id:280001) as 6d5ad2079951de8843f39c61fe47d194377926c6
6 years, 2 months ago (2014-10-03 20:10:17 UTC) #28
commit-bot: I haz the power
6 years, 2 months ago (2014-10-03 20:10:56 UTC) #29
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/c6e5e38c6843add6e7aa5d427958164d0550f20b
Cr-Commit-Position: refs/heads/master@{#298084}

Powered by Google App Engine
This is Rietveld 408576698