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

Issue 10700057: Add always on top windows to the alt+tab list (Closed)

Created:
8 years, 5 months ago by Zachary Kuznia
Modified:
8 years, 4 months ago
Reviewers:
oshima, Daniel Erat, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, kuscher1
Visibility:
Public.

Description

Add always on top windows to the alt+tab list BUG=114631 TEST=Open Google Talk. Try to alt+tab away from it, and then back. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150094

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add test case. #

Patch Set 3 : Fix always on top windows for other desktops #

Patch Set 4 : Add a test to verify functionality with multiple desktops #

Total comments: 4

Patch Set 5 : Use most recently used windows. #

Total comments: 8

Patch Set 6 : Properly watch window events #

Patch Set 7 : Fix comment #

Patch Set 8 : More comments. #

Patch Set 9 : Rebase #

Total comments: 18

Patch Set 10 : Code review fixes #

Total comments: 6

Patch Set 11 : Code review fixes #

Patch Set 12 : Fix clang #

Total comments: 4

Patch Set 13 : Code review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -26 lines) Patch
M ash/extended_desktop_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M ash/focus_cycler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -1 line 0 comments Download
M ash/wm/window_cycle_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +42 lines, -5 lines 0 comments Download
M ash/wm/window_cycle_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +96 lines, -13 lines 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +224 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/window_positioner.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (0 generated)
Zachary Kuznia
Hello sky, Could you review this at: https://chromiumcodereview.appspot.com/10700057 Thanks, -Zach
8 years, 5 months ago (2012-07-02 10:05:29 UTC) #1
Zachary Kuznia
Hello Daniel, Could you have a look at this? Thanks, -Zach
8 years, 5 months ago (2012-07-11 04:42:22 UTC) #2
Daniel Erat
Please also add a test for this. https://chromiumcodereview.appspot.com/10700057/diff/1/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://chromiumcodereview.appspot.com/10700057/diff/1/ash/wm/window_cycle_controller.cc#newcode191 ash/wm/window_cycle_controller.cc:191: windows.insert(active_location, top_windows.begin(), ...
8 years, 5 months ago (2012-07-11 14:53:41 UTC) #3
Zachary Kuznia
Unittest added. How should I filter out/test windows on other desktops? The controller and tests ...
8 years, 5 months ago (2012-07-13 07:50:41 UTC) #4
Daniel Erat
https://chromiumcodereview.appspot.com/10700057/diff/1/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://chromiumcodereview.appspot.com/10700057/diff/1/ash/wm/window_cycle_controller.cc#newcode191 ash/wm/window_cycle_controller.cc:191: windows.insert(active_location, top_windows.begin(), top_windows.end()); On 2012/07/11 14:53:41, Daniel Erat wrote: ...
8 years, 5 months ago (2012-07-13 14:07:12 UTC) #5
oshima
https://chromiumcodereview.appspot.com/10700057/diff/1/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://chromiumcodereview.appspot.com/10700057/diff/1/ash/wm/window_cycle_controller.cc#newcode191 ash/wm/window_cycle_controller.cc:191: windows.insert(active_location, top_windows.begin(), top_windows.end()); On 2012/07/13 14:07:12, Daniel Erat wrote: ...
8 years, 5 months ago (2012-07-13 14:53:30 UTC) #6
Zachary Kuznia
Fixed to put other desktops lower in the stack. I don't see a good way ...
8 years, 5 months ago (2012-07-17 02:40:59 UTC) #7
oshima
On 2012/07/17 02:40:59, Zachary Kuznia wrote: > Fixed to put other desktops lower in the ...
8 years, 5 months ago (2012-07-17 07:24:31 UTC) #8
Zachary Kuznia
Thanks! Added a test. On 2012/07/17 07:24:31, oshima wrote: > On 2012/07/17 02:40:59, Zachary Kuznia ...
8 years, 5 months ago (2012-07-17 09:05:52 UTC) #9
Daniel Erat
Just to make sure I understand, this is the order in which the windows are ...
8 years, 5 months ago (2012-07-17 17:33:09 UTC) #10
sky
https://chromiumcodereview.appspot.com/10700057/diff/10002/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://chromiumcodereview.appspot.com/10700057/diff/10002/ash/wm/window_cycle_controller.cc#newcode143 ash/wm/window_cycle_controller.cc:143: aura::Window* always_on_top_container = Shell::GetContainer( Shouldn't always on top be ...
8 years, 5 months ago (2012-07-17 17:43:36 UTC) #11
Zachary Kuznia
https://chromiumcodereview.appspot.com/10700057/diff/10002/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://chromiumcodereview.appspot.com/10700057/diff/10002/ash/wm/window_cycle_controller.cc#newcode143 ash/wm/window_cycle_controller.cc:143: aura::Window* always_on_top_container = Shell::GetContainer( It's added last because the ...
8 years, 5 months ago (2012-07-18 01:36:54 UTC) #12
Zachary Kuznia
This is correct. This should probably be refactored, as you suggest. However, I think this ...
8 years, 5 months ago (2012-07-18 01:41:11 UTC) #13
Emmanuel Saint-loubert-BiƩ
LGTM, my strong preference is to defer the refactoring to 22, as we need this ...
8 years, 5 months ago (2012-07-18 02:01:55 UTC) #14
Daniel Erat
On 2012/07/18 02:01:55, Emmanuel Saint-loubert-BiƩ wrote: > LGTM, my strong preference is to defer the ...
8 years, 5 months ago (2012-07-18 03:23:41 UTC) #15
Zachary Kuznia
The behavior should still be MRU, except when there is an always on top window ...
8 years, 5 months ago (2012-07-18 05:05:33 UTC) #16
sky
I agree with Dan. We should fix this the right way. -Scott On Tue, Jul ...
8 years, 5 months ago (2012-07-18 14:49:22 UTC) #17
Zachary Kuznia
Updated to track window activation, and maintain an MRU window list. On 2012/07/18 14:49:22, sky ...
8 years, 5 months ago (2012-07-19 08:57:20 UTC) #18
Daniel Erat
High-level question: Do you need to watch for window destruction and remove windows from the ...
8 years, 5 months ago (2012-07-19 15:14:17 UTC) #19
sky
This class should become a WindowObserver for the containers it cares about. That will allow ...
8 years, 5 months ago (2012-07-19 16:41:15 UTC) #20
Zachary Kuznia
I've updated the change to only monitor the container that we care about, and to ...
8 years, 5 months ago (2012-07-23 22:44:33 UTC) #21
sky
https://chromiumcodereview.appspot.com/10700057/diff/31003/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://chromiumcodereview.appspot.com/10700057/diff/31003/ash/wm/window_cycle_controller.cc#newcode98 ash/wm/window_cycle_controller.cc:98: StopCycling(); Doesn't this need to remove observers from all ...
8 years, 5 months ago (2012-07-24 03:53:31 UTC) #22
Zachary Kuznia
https://chromiumcodereview.appspot.com/10700057/diff/31003/ash/wm/window_cycle_controller.cc File ash/wm/window_cycle_controller.cc (right): https://chromiumcodereview.appspot.com/10700057/diff/31003/ash/wm/window_cycle_controller.cc#newcode98 ash/wm/window_cycle_controller.cc:98: StopCycling(); No. The containers get the OnWindowDestroying notification before ...
8 years, 4 months ago (2012-07-30 07:49:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zork@chromium.org/10700057/36001
8 years, 4 months ago (2012-07-30 15:22:48 UTC) #24
commit-bot: I haz the power
Presubmit check for 10700057-36001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-30 15:22:52 UTC) #25
Daniel Erat
Sorry, that was a mis-click that hit the commit queue button. :-(
8 years, 4 months ago (2012-07-30 15:23:33 UTC) #26
Daniel Erat
https://chromiumcodereview.appspot.com/10700057/diff/36001/ash/wm/window_cycle_controller.h File ash/wm/window_cycle_controller.h (right): https://chromiumcodereview.appspot.com/10700057/diff/36001/ash/wm/window_cycle_controller.h#newcode64 ash/wm/window_cycle_controller.h:64: // Setup the observers to handle window changes for ...
8 years, 4 months ago (2012-07-30 15:32:51 UTC) #27
Zachary Kuznia
https://chromiumcodereview.appspot.com/10700057/diff/36001/ash/wm/window_cycle_controller.h File ash/wm/window_cycle_controller.h (right): https://chromiumcodereview.appspot.com/10700057/diff/36001/ash/wm/window_cycle_controller.h#newcode64 ash/wm/window_cycle_controller.h:64: // Setup the observers to handle window changes for ...
8 years, 4 months ago (2012-07-31 03:36:43 UTC) #28
Daniel Erat
(I'll defer to Scott for the final looks-good since he's been reviewing this more closely ...
8 years, 4 months ago (2012-07-31 21:47:47 UTC) #29
Zachary Kuznia
sky: Ping? On 2012/07/31 21:47:47, Daniel Erat wrote: > (I'll defer to Scott for the ...
8 years, 4 months ago (2012-08-01 09:15:02 UTC) #30
sky
LGTM https://chromiumcodereview.appspot.com/10700057/diff/48001/ash/shell.h File ash/shell.h (right): https://chromiumcodereview.appspot.com/10700057/diff/48001/ash/shell.h#newcode256 ash/shell.h:256: internal::ActivationController* activation_controller() { We shouldn't expose classes in ...
8 years, 4 months ago (2012-08-02 21:18:00 UTC) #31
Zachary Kuznia
https://chromiumcodereview.appspot.com/10700057/diff/48001/ash/shell.h File ash/shell.h (right): https://chromiumcodereview.appspot.com/10700057/diff/48001/ash/shell.h#newcode256 ash/shell.h:256: internal::ActivationController* activation_controller() { On 2012/08/02 21:18:00, sky wrote: > ...
8 years, 4 months ago (2012-08-06 05:56:03 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zork@chromium.org/10700057/42003
8 years, 4 months ago (2012-08-06 07:34:25 UTC) #33
commit-bot: I haz the power
Try job failure for 10700057-42003 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 07:51:50 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zork@chromium.org/10700057/42003
8 years, 4 months ago (2012-08-06 07:56:12 UTC) #35
commit-bot: I haz the power
Try job failure for 10700057-42003 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 08:54:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zork@chromium.org/10700057/42003
8 years, 4 months ago (2012-08-06 09:05:07 UTC) #37
commit-bot: I haz the power
Try job failure for 10700057-42003 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 09:31:02 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zork@chromium.org/10700057/42003
8 years, 4 months ago (2012-08-06 09:53:09 UTC) #39
commit-bot: I haz the power
Try job failure for 10700057-42003 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 10:07:36 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zork@chromium.org/10700057/42003
8 years, 4 months ago (2012-08-06 14:04:03 UTC) #41
commit-bot: I haz the power
8 years, 4 months ago (2012-08-06 15:34:27 UTC) #42
Change committed as 150094

Powered by Google App Engine
This is Rietveld 408576698