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

Issue 8387043: [Aura] Support always-on-top top level window. (Closed)

Created:
9 years, 1 month ago by xiyuan
Modified:
9 years, 1 month ago
CC:
chromium-reviews, tfarina, dhollowa
Visibility:
Public.

Description

[Aura] Support always-on-top top level window. BUG=97256, 102582 TEST=AlwaysOnTop related tests in ShellTest should pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109990

Patch Set 1 #

Total comments: 4

Patch Set 2 : move kPropAlwaysOnTop to aura_constants and rename to kAlwaysOnTopKey to be consistent #

Patch Set 3 : support always-on-top change after creation, add unittests and fix XCursorCache issue #

Total comments: 1

Patch Set 4 : add missing shell_unittest.cc #

Patch Set 5 : address tfarina's comment for patch #4 #

Patch Set 6 : fix win_aura bot #

Total comments: 10

Patch Set 7 : sync and address oshima's comments in patch 6 #

Total comments: 12

Patch Set 8 : address comments in patch #7 #

Patch Set 9 : observe top level windows only #

Patch Set 10 : move always-on-top handling code from shell into a controller #

Total comments: 12

Patch Set 11 : sync and address oshima's comments in patch 10 #

Total comments: 2

Patch Set 12 : sync and fix nit in patch 11 #

Patch Set 13 : sync and resolve conflicts #

Patch Set 14 : fix compilation error #

Patch Set 15 : sync, move AlwaysOnTonController from Shell to StackingController #

Total comments: 1

Patch Set 16 : sync, FlushMessageLoop -> RunAllPendingInMessageLoop #

Patch Set 17 : adding AuraShellTestBase that creates/deletes Shell and fix win_aura crash #

Total comments: 2

Patch Set 18 : sync and update comment per ben #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -25 lines) Patch
M ui/aura/client/aura_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -4 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -6 lines 0 comments Download
M ui/aura/desktop_host_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -2 lines 0 comments Download
A ui/aura_shell/always_on_top_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +54 lines, -0 lines 0 comments Download
A ui/aura_shell/always_on_top_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +80 lines, -0 lines 0 comments Download
M ui/aura_shell/aura_shell.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 ui/aura_shell/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -0 lines 0 comments Download
A ui/aura_shell/shell_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +107 lines, -0 lines 0 comments Download
M ui/aura_shell/stacking_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -0 lines 0 comments Download
M ui/aura_shell/stacking_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -1 line 0 comments Download
M ui/aura_shell/stacking_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -4 lines 0 comments Download
A ui/aura_shell/test/aura_shell_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +31 lines, -0 lines 0 comments Download
A ui/aura_shell/test/aura_shell_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +36 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +16 lines, -6 lines 0 comments Download
M views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
xiyuan
9 years, 1 month ago (2011-10-31 19:43:22 UTC) #1
oshima
can you add test for this? http://codereview.chromium.org/8387043/diff/1/ui/aura/window.cc File ui/aura/window.cc (right): http://codereview.chromium.org/8387043/diff/1/ui/aura/window.cc#newcode28 ui/aura/window.cc:28: const char Window::kPropAlwaysOnTop[] ...
9 years, 1 month ago (2011-11-01 18:35:21 UTC) #2
mazda
Does this solve http://crbug.com/97256? If yes, please add the number to BUG line.
9 years, 1 month ago (2011-11-02 13:43:44 UTC) #3
xiyuan
CL updated. Please take another look. - Moved property key to auro_constants; - Added unittests; ...
9 years, 1 month ago (2011-11-02 23:26:32 UTC) #4
tfarina
http://codereview.chromium.org/8387043/diff/7001/ui/aura/aura_constants.cc File ui/aura/aura_constants.cc (right): http://codereview.chromium.org/8387043/diff/7001/ui/aura/aura_constants.cc#newcode14 ui/aura/aura_constants.cc:14: } please add // namespace aura
9 years, 1 month ago (2011-11-02 23:34:35 UTC) #5
oshima
http://codereview.chromium.org/8387043/diff/9002/ui/aura_shell/shell.cc File ui/aura_shell/shell.cc (right): http://codereview.chromium.org/8387043/diff/9002/ui/aura_shell/shell.cc#newcode88 ui/aura_shell/shell.cc:88: if (instance_ == this) There should be only one ...
9 years, 1 month ago (2011-11-04 18:14:11 UTC) #6
xiyuan
http://codereview.chromium.org/8387043/diff/9002/ui/aura_shell/shell.cc File ui/aura_shell/shell.cc (right): http://codereview.chromium.org/8387043/diff/9002/ui/aura_shell/shell.cc#newcode88 ui/aura_shell/shell.cc:88: if (instance_ == this) On 2011/11/04 18:14:11, oshima wrote: ...
9 years, 1 month ago (2011-11-04 18:39:30 UTC) #7
oshima
http://codereview.chromium.org/8387043/diff/12002/ui/aura_shell/shell_unittest.cc File ui/aura_shell/shell_unittest.cc (right): http://codereview.chromium.org/8387043/diff/12002/ui/aura_shell/shell_unittest.cc#newcode6 ui/aura_shell/shell_unittest.cc:6: #include "ui/aura/desktop.h" i believe you don't need these two. ...
9 years, 1 month ago (2011-11-04 20:40:08 UTC) #8
xiyuan
Please take another look. Thanks http://codereview.chromium.org/8387043/diff/12002/ui/aura_shell/shell_unittest.cc File ui/aura_shell/shell_unittest.cc (right): http://codereview.chromium.org/8387043/diff/12002/ui/aura_shell/shell_unittest.cc#newcode6 ui/aura_shell/shell_unittest.cc:6: #include "ui/aura/desktop.h" On 2011/11/04 ...
9 years, 1 month ago (2011-11-04 22:40:21 UTC) #9
oshima
http://codereview.chromium.org/8387043/diff/21001/ui/aura_shell/always_on_top_controller.cc File ui/aura_shell/always_on_top_controller.cc (right): http://codereview.chromium.org/8387043/diff/21001/ui/aura_shell/always_on_top_controller.cc#newcode33 ui/aura_shell/always_on_top_controller.cc:33: DCHECK(default_container->children().size() == 0); empty() http://codereview.chromium.org/8387043/diff/21001/ui/aura_shell/always_on_top_controller.h File ui/aura_shell/always_on_top_controller.h (right): http://codereview.chromium.org/8387043/diff/21001/ui/aura_shell/always_on_top_controller.h#newcode24 ...
9 years, 1 month ago (2011-11-08 23:34:24 UTC) #10
xiyuan
+sky, ben for comments Oshima and I are wonder where is the best place to ...
9 years, 1 month ago (2011-11-09 00:01:41 UTC) #11
Ben Goodger (Google)
Approach LGTM. http://codereview.chromium.org/8387043/diff/26002/ui/aura_shell/shell.cc File ui/aura_shell/shell.cc (right): http://codereview.chromium.org/8387043/diff/26002/ui/aura_shell/shell.cc#newcode114 ui/aura_shell/shell.cc:114: GetContainer(internal::kShellWindowId_DefaultContainer), nit: 4-space indent
9 years, 1 month ago (2011-11-09 17:18:08 UTC) #12
xiyuan
http://codereview.chromium.org/8387043/diff/21001/ui/aura_shell/always_on_top_controller.cc File ui/aura_shell/always_on_top_controller.cc (right): http://codereview.chromium.org/8387043/diff/21001/ui/aura_shell/always_on_top_controller.cc#newcode33 ui/aura_shell/always_on_top_controller.cc:33: DCHECK(default_container->children().size() == 0); On 2011/11/08 23:34:24, oshima wrote: > ...
9 years, 1 month ago (2011-11-09 17:42:18 UTC) #13
oshima
LGTM
9 years, 1 month ago (2011-11-10 00:00:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/8387043/29001
9 years, 1 month ago (2011-11-10 00:46:40 UTC) #15
commit-bot: I haz the power
Can't apply patch for file ui/aura/aura_constants.cc. While running patch -p1 --forward --force; patching file ui/aura/aura_constants.cc ...
9 years, 1 month ago (2011-11-10 00:46:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/8387043/32002
9 years, 1 month ago (2011-11-10 19:30:40 UTC) #17
commit-bot: I haz the power
Can't apply patch for file ui/aura_shell/aura_shell.gyp. While running patch -p1 --forward --force; patching file ui/aura_shell/aura_shell.gyp ...
9 years, 1 month ago (2011-11-10 20:48:54 UTC) #18
xiyuan
CL updated with Ben's StackingController change: - Moved AlwaysOnTopController from Shell into StackingController; - Update ...
9 years, 1 month ago (2011-11-10 23:51:27 UTC) #19
oshima
http://codereview.chromium.org/8387043/diff/32003/ui/aura/test/aura_test_base.h File ui/aura/test/aura_test_base.h (right): http://codereview.chromium.org/8387043/diff/32003/ui/aura/test/aura_test_base.h#newcode33 ui/aura/test/aura_test_base.h:33: void FlushMessageLoop(); Can you rename to RunAllPendingInMessageLoop()? (to keep ...
9 years, 1 month ago (2011-11-11 21:08:07 UTC) #20
xiyuan
CL updated: - Added a AuraShellTestBase that creates Shell in Setup and release it in ...
9 years, 1 month ago (2011-11-14 21:47:38 UTC) #21
Ben Goodger (Google)
lgtm http://codereview.chromium.org/8387043/diff/45001/ui/base/x/x11_util.h File ui/base/x/x11_util.h (right): http://codereview.chromium.org/8387043/diff/45001/ui/base/x/x11_util.h#newcode71 ui/base/x/x11_util.h:71: // TODO(xiyuan): Fix the stale XCursorCache problem properly. ...
9 years, 1 month ago (2011-11-14 22:07:58 UTC) #22
oshima
LGTM
9 years, 1 month ago (2011-11-14 22:45:42 UTC) #23
xiyuan
Thanks guys. Will try to land it now. :) http://codereview.chromium.org/8387043/diff/45001/ui/base/x/x11_util.h File ui/base/x/x11_util.h (right): http://codereview.chromium.org/8387043/diff/45001/ui/base/x/x11_util.h#newcode71 ui/base/x/x11_util.h:71: ...
9 years, 1 month ago (2011-11-14 22:47:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/8387043/45005
9 years, 1 month ago (2011-11-14 22:48:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/8387043/45008
9 years, 1 month ago (2011-11-14 22:52:23 UTC) #26
commit-bot: I haz the power
9 years, 1 month ago (2011-11-15 00:20:19 UTC) #27
Change committed as 109990

Powered by Google App Engine
This is Rietveld 408576698