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

Issue 260883005: Separated alt-tab window cycle from overview mode (Closed)

Created:
6 years, 7 months ago by Nina
Modified:
6 years, 7 months ago
Reviewers:
flackr, tdanderson, sky
CC:
chromium-reviews, tdanderson+overview_chromium.org, kalyank, sadrul, ben+ash_chromium.org, flackr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Separated alt-tab window cycle from overview mode This change separates the logic into two different classes. It also - Brings back a bounce animation when there is only one window that was lost at some point in the past. - Removes the minimized animation if there is only one window while alt tabbing. Basically I brought back from the past two classes, WindowCycleController and WindowCycleList and adapted them to work with the new codebase. Also, I moved some tests from WindowSelectorUnittest to WindowCycleControllerUnittest, and removed the ones that are now irrelevant. Finally, we are also dropping support for alt-tabbing while in overview mode in favour of cancelling the latter. BUG=365786 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269997

Patch Set 1 #

Total comments: 57

Patch Set 2 : Fixed CL issues #

Total comments: 14

Patch Set 3 : Code cleanup following latest comments #

Patch Set 4 : Fixed access issue #

Total comments: 12

Patch Set 5 : Removed stat collection no longer used #

Patch Set 6 : Fixed issues from comments #

Patch Set 7 : Fixed tests and some issues found by reviewers #

Patch Set 8 : Minor style adjustment #

Total comments: 6

Patch Set 9 : Fixed nits #

Total comments: 16

Patch Set 10 : Fixed nits, minor issues #

Patch Set 11 : Fixed some compile errors #

Total comments: 15

Patch Set 12 : Fixed issues in window_cycle_controller #

Total comments: 2

Patch Set 13 : Re-fix the issues #

Total comments: 2

Patch Set 14 : Fixed nit #

Total comments: 8

Patch Set 15 : Refactored func to use std::find, fixed nits #

Patch Set 16 : Removed two unused functions #

Patch Set 17 : Removed another unused function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1025 lines, -773 lines) Patch
M ash/accelerators/accelerator_controller.cc View 3 chunks +5 lines, -4 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 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M ash/shell.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -0 lines 0 comments Download
M ash/wm/overview/window_overview.h View 1 2 3 4 5 4 chunks +1 line, -14 lines 0 comments Download
M ash/wm/overview/window_overview.cc View 1 2 3 4 5 6 7 8 6 chunks +8 lines, -34 lines 0 comments Download
M ash/wm/overview/window_selector.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -43 lines 0 comments Download
M ash/wm/overview/window_selector.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +3 lines, -194 lines 0 comments Download
M ash/wm/overview/window_selector_controller.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ash/wm/overview/window_selector_controller.cc View 1 2 3 4 5 1 chunk +1 line, -21 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +0 lines, -456 lines 0 comments Download
A ash/wm/window_cycle_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +73 lines, -0 lines 0 comments Download
A ash/wm/window_cycle_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +98 lines, -0 lines 0 comments Download
A ash/wm/window_cycle_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +588 lines, -0 lines 0 comments Download
A ash/wm/window_cycle_list.h View 1 2 3 4 5 6 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A ash/wm/window_cycle_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +171 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Nina
I know this is big, sorry :( The new tests are almost a copy paste ...
6 years, 7 months ago (2014-05-01 17:00:01 UTC) #1
tdanderson
Hi Nico, please see my comments below: https://codereview.chromium.org/260883005/diff/1/ash/wm/overview/window_overview.cc File ash/wm/overview/window_overview.cc (right): https://codereview.chromium.org/260883005/diff/1/ash/wm/overview/window_overview.cc#newcode264 ash/wm/overview/window_overview.cc:264: event->StopPropagation(); What ...
6 years, 7 months ago (2014-05-01 18:51:38 UTC) #2
Nina
Please keep in mind that I didn't code WindowCycleList nor WindowCycleController... just adjusted them to ...
6 years, 7 months ago (2014-05-01 20:41:16 UTC) #3
tdanderson
Hi Nico, thanks for the changes! I have a few more comments below. Feel free ...
6 years, 7 months ago (2014-05-01 21:58:33 UTC) #4
Nina
I took care of the issues Terry found. Can you review this patch, Rob? Most ...
6 years, 7 months ago (2014-05-02 13:27:33 UTC) #5
flackr
Can you try uploading with a very low similarity value, i.e.: git cl upload --similarity=20 ...
6 years, 7 months ago (2014-05-05 13:58:56 UTC) #6
Nina
Fixed tests, fixed comments. Would you mind reviewing again? Thanks! https://codereview.chromium.org/260883005/diff/60001/ash/wm/overview/window_overview.h File ash/wm/overview/window_overview.h (right): https://codereview.chromium.org/260883005/diff/60001/ash/wm/overview/window_overview.h#newcode87 ...
6 years, 7 months ago (2014-05-05 15:44:28 UTC) #7
tdanderson
LGTM with some nits below. https://codereview.chromium.org/260883005/diff/140001/ash/wm/overview/window_overview.cc File ash/wm/overview/window_overview.cc (right): https://codereview.chromium.org/260883005/diff/140001/ash/wm/overview/window_overview.cc#newcode152 ash/wm/overview/window_overview.cc:152: // Send an a11y ...
6 years, 7 months ago (2014-05-05 15:54:56 UTC) #8
Nina
Fixed nits https://codereview.chromium.org/260883005/diff/140001/ash/wm/overview/window_overview.cc File ash/wm/overview/window_overview.cc (right): https://codereview.chromium.org/260883005/diff/140001/ash/wm/overview/window_overview.cc#newcode152 ash/wm/overview/window_overview.cc:152: // Send an a11y alert On 2014/05/05 ...
6 years, 7 months ago (2014-05-05 16:07:30 UTC) #9
flackr
https://codereview.chromium.org/260883005/diff/160001/ash/wm/overview/window_selector.h File ash/wm/overview/window_selector.h (right): https://codereview.chromium.org/260883005/diff/160001/ash/wm/overview/window_selector.h#newcode24 ash/wm/overview/window_selector.h:24: class ScopedShowWindow; Remove this. https://codereview.chromium.org/260883005/diff/160001/ash/wm/overview/window_selector.h#newcode44 ash/wm/overview/window_selector.h:44: void SelectWindow(); No ...
6 years, 7 months ago (2014-05-06 02:21:36 UTC) #10
Nina
Hi Rob, can you give the patch another look? Thanks! https://codereview.chromium.org/260883005/diff/160001/ash/wm/overview/window_selector.h File ash/wm/overview/window_selector.h (right): https://codereview.chromium.org/260883005/diff/160001/ash/wm/overview/window_selector.h#newcode44 ...
6 years, 7 months ago (2014-05-06 12:46:04 UTC) #11
flackr
Few more comments, but otherwise good. https://codereview.chromium.org/260883005/diff/200001/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://codereview.chromium.org/260883005/diff/200001/ash/wm/window_cycle_controller.cc#newcode7 ash/wm/window_cycle_controller.cc:7: #include <algorithm> Don't ...
6 years, 7 months ago (2014-05-07 00:07:54 UTC) #12
Nina
I think I nailed your comments, Rob, but I'm not 100% sure if the implementation ...
6 years, 7 months ago (2014-05-07 14:55:42 UTC) #13
flackr
https://codereview.chromium.org/260883005/diff/200001/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://codereview.chromium.org/260883005/diff/200001/ash/wm/window_cycle_controller.cc#newcode85 ash/wm/window_cycle_controller.cc:85: event_handler_.reset(new WindowCycleEventFilter()); Sorry, didn't mean to move the event_handler_ ...
6 years, 7 months ago (2014-05-07 16:03:45 UTC) #14
Nina
Mind taking another look? This time I think I got it right.
6 years, 7 months ago (2014-05-07 17:07:34 UTC) #15
flackr
LGTM with nit. https://codereview.chromium.org/260883005/diff/240001/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://codereview.chromium.org/260883005/diff/240001/ash/wm/window_cycle_controller.cc#newcode51 ash/wm/window_cycle_controller.cc:51: nit: no double newline here. Was ...
6 years, 7 months ago (2014-05-07 21:21:32 UTC) #16
Nina
Sky, can you review this patch? Especially files shell.cc, shell.h, accelerator_controller_unittest.cc and accelerator_controller.cc need review ...
6 years, 7 months ago (2014-05-07 21:36:04 UTC) #17
sky
https://codereview.chromium.org/260883005/diff/260001/ash/wm/window_cycle_list.cc File ash/wm/window_cycle_list.cc (right): https://codereview.chromium.org/260883005/diff/260001/ash/wm/window_cycle_list.cc#newcode21 ash/wm/window_cycle_list.cc:21: aura::Window* below = NULL; Can't you use std::find here? ...
6 years, 7 months ago (2014-05-07 22:28:16 UTC) #18
Nina
Sky, I took care of the issues you found. Mind giving it another look? https://codereview.chromium.org/260883005/diff/260001/ash/wm/window_cycle_list.cc ...
6 years, 7 months ago (2014-05-08 13:35:59 UTC) #19
sky
LGTM
6 years, 7 months ago (2014-05-08 16:04:52 UTC) #20
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-12 15:16:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nsatragno@chromium.org/260883005/300001
6 years, 7 months ago (2014-05-12 15:16:39 UTC) #22
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-12 19:03:33 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nsatragno@chromium.org/260883005/320001
6 years, 7 months ago (2014-05-12 19:05:42 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 22:57:09 UTC) #25
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 03:44:16 UTC) #26
Message was sent while issue was closed.
Change committed as 269997

Powered by Google App Engine
This is Rietveld 408576698