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

Issue 11364053: make StackingClient dispatch to either ash or desktop (Closed)

Created:
8 years, 1 month ago by scottmg
Modified:
8 years, 1 month ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Currently, the ash and desktop implementations of StackingClient stomp each other in aura::Env. Instead: - Don't have StackingClient implementations install themselves by default - Add chrome implementation of StackingClient that dispatches to ash or desktop - Pass extra |context| to GetDefaultParent (normally a RootWindow) that it can use to determine desktop type. - Workaround a few locations by using ScopedForceDesktopType: in these locations, the GetHostDesktopForNative... functions fail because they're used during window creation when the windows have no parent (and so can't determine which desktop they're in). - Remove window-specific StackingClient (unnecessary?) BUG=128578 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167245

Patch Set 1 : context for GetDefaultParent #

Patch Set 2 : nuke window-specific GetDefaultParent #

Patch Set 3 : more callsites #

Patch Set 4 : remove file #

Total comments: 14

Patch Set 5 : review fixes, and delegate creation Shell #

Patch Set 6 : back to use_ash #

Patch Set 7 : missing include #

Patch Set 8 : linux_aura fix #

Patch Set 9 : rebase + disable prerender tests on win-aura #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -94 lines) Patch
M ash/shell.h View 1 2 3 4 4 chunks +4 lines, -2 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/stacking_controller.h View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M ash/wm/stacking_controller.cc View 1 2 3 4 4 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/ui/aura/stacking_client_aura.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/aura/stacking_client_aura.cc View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_tabstrip.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 5 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/shell/shell_aura.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/shell_stacking_client_ash.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/shell_stacking_client_ash.cc View 2 chunks +1 line, -1 line 0 comments Download
M ui/aura/client/stacking_client.h View 1 2 3 4 1 chunk +7 lines, -11 lines 0 comments Download
M ui/aura/client/stacking_client.cc View 1 1 chunk +0 lines, -22 lines 0 comments Download
M ui/aura/demo/demo_main.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/desktop/desktop_stacking_client.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/desktop/desktop_stacking_client.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura/test/test_stacking_client.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/test/test_stacking_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/window.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/examples/content_client/examples_browser_main_parts.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_native_widget_aura.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_native_widget_aura.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -29 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scottmg
8 years, 1 month ago (2012-11-10 00:20:48 UTC) #1
Ben Goodger (Google)
Good stuff. http://codereview.chromium.org/11364053/diff/7044/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/11364053/diff/7044/chrome/browser/prerender/prerender_manager.cc#newcode241 chrome/browser/prerender/prerender_manager.cc:241: // get a valid parent window here. ...
8 years, 1 month ago (2012-11-12 16:49:32 UTC) #2
scottmg
http://codereview.chromium.org/11364053/diff/7044/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/11364053/diff/7044/chrome/browser/prerender/prerender_manager.cc#newcode241 chrome/browser/prerender/prerender_manager.cc:241: // get a valid parent window here. On 2012/11/12 ...
8 years, 1 month ago (2012-11-12 18:03:53 UTC) #3
scottmg
http://codereview.chromium.org/11364053/diff/7044/chrome/browser/ui/views/frame/browser_frame.cc File chrome/browser/ui/views/frame/browser_frame.cc (right): http://codereview.chromium.org/11364053/diff/7044/chrome/browser/ui/views/frame/browser_frame.cc#newcode67 chrome/browser/ui/views/frame/browser_frame.cc:67: #if defined(USE_ASH) On 2012/11/12 18:03:53, scottmg wrote: > On ...
8 years, 1 month ago (2012-11-12 18:20:30 UTC) #4
Ben Goodger (Google)
lgtm http://codereview.chromium.org/11364053/diff/7044/chrome/browser/ui/views/frame/browser_frame.cc File chrome/browser/ui/views/frame/browser_frame.cc (right): http://codereview.chromium.org/11364053/diff/7044/chrome/browser/ui/views/frame/browser_frame.cc#newcode67 chrome/browser/ui/views/frame/browser_frame.cc:67: #if defined(USE_ASH) hrm. I guess we're not building ...
8 years, 1 month ago (2012-11-12 18:26:24 UTC) #5
commit-bot: I haz the power
8 years, 1 month ago (2012-11-12 20:32:53 UTC) #6

Powered by Google App Engine
This is Rietveld 408576698