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

Issue 1560063003: mus: Fix activation cycle direction. (Closed)

Created:
4 years, 11 months ago by sadrul
Modified:
4 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Fix activation cycle direction. When moving activation (e.g. either because of window-switch accelerator, or when the active window is destroyed/hidden), make sure the previous active window is activated first, instead of the oldest active window. However, when explicitly cycling through the active windows (e.g. by using the window-cycle accelerator), make sure it cycles through all activatable windows, instead of just the two topmost windows. BUG=548422 Committed: https://crrev.com/f1503e37c092083c0efde38f8f64884e5fb852fa Cr-Commit-Position: refs/heads/master@{#368460}

Patch Set 1 #

Total comments: 3

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : use-server-window-tracker #

Patch Set 4 : tot.merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -44 lines) Patch
M components/mus/ws/focus_controller.h View 1 2 4 chunks +16 lines, -1 line 0 comments Download
M components/mus/ws/focus_controller.cc View 1 2 7 chunks +50 lines, -20 lines 0 comments Download
M components/mus/ws/focus_controller_unittest.cc View 3 chunks +18 lines, -18 lines 0 comments Download
M components/mus/ws/window_manager_client_apptest.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
sadrul
4 years, 11 months ago (2016-01-05 16:29:07 UTC) #2
sky
https://codereview.chromium.org/1560063003/diff/1/components/mus/ws/focus_controller.cc File components/mus/ws/focus_controller.cc (right): https://codereview.chromium.org/1560063003/diff/1/components/mus/ws/focus_controller.cc#newcode19 components/mus/ws/focus_controller.cc:19: ServerWindow* GetDeepestFirstDescendant(ServerWindow* window) { Update function name to reflect ...
4 years, 11 months ago (2016-01-05 16:42:38 UTC) #3
sadrul
https://codereview.chromium.org/1560063003/diff/1/components/mus/ws/focus_controller.h File components/mus/ws/focus_controller.h (right): https://codereview.chromium.org/1560063003/diff/1/components/mus/ws/focus_controller.h#newcode84 components/mus/ws/focus_controller.h:84: std::vector<WindowId> cycle_windows_; On 2016/01/05 16:42:38, sky wrote: > As ...
4 years, 11 months ago (2016-01-05 17:14:53 UTC) #4
sky
On Tue, Jan 5, 2016 at 9:14 AM, <sadrul@chromium.org> wrote: > > https://codereview.chromium.org/1560063003/diff/1/components/mus/ws/focus_controller.h > File ...
4 years, 11 months ago (2016-01-05 19:17:20 UTC) #5
sadrul
Updated to make sure cycle_windows_ never holds on to a destroyed window. (I didn't introduce ...
4 years, 11 months ago (2016-01-06 18:00:38 UTC) #6
sky
LGTM https://codereview.chromium.org/1560063003/diff/20001/components/mus/ws/focus_controller.cc File components/mus/ws/focus_controller.cc (right): https://codereview.chromium.org/1560063003/diff/20001/components/mus/ws/focus_controller.cc#newcode100 components/mus/ws/focus_controller.cc:100: } else if (std::find(cycle_windows_.begin(), cycle_windows_.end(), FYI: you can ...
4 years, 11 months ago (2016-01-06 21:02:39 UTC) #7
sadrul
I have updated the CL to use ServerWindowTracker. Would you mind taking another look? Thanks! ...
4 years, 11 months ago (2016-01-08 20:40:26 UTC) #8
sky
SLGTM
4 years, 11 months ago (2016-01-08 22:06:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1560063003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1560063003/60001
4 years, 11 months ago (2016-01-08 22:51:10 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-08 23:49:22 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 23:51:07 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f1503e37c092083c0efde38f8f64884e5fb852fa
Cr-Commit-Position: refs/heads/master@{#368460}

Powered by Google App Engine
This is Rietveld 408576698