diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 18:46:21 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 18:46:21 +0000 |
commit | 19ae46080bae6133eb1685922faaa234bf775805 (patch) | |
tree | 2a2d70df8a98e85622b4e1e993bcfea10570adc3 /ash/shell.cc | |
parent | 85ff2936cec8d4b942bf2f35ad6bfc6bb05385b6 (diff) | |
download | chromium_src-19ae46080bae6133eb1685922faaa234bf775805.zip chromium_src-19ae46080bae6133eb1685922faaa234bf775805.tar.gz chromium_src-19ae46080bae6133eb1685922faaa234bf775805.tar.bz2 |
Finally rip the global StackingClient bandaid off.
- Removes the aura::client::SetStackingClient(StackingClient*) interface.
- Moves the ash StackingController from a singleton owned by ash::Shell to one StackingController per RootWindow owned by the ash::RootWindowController. (Also removes a spurious delegate method, where every implementation creates the same object, including tests.)
- Removes the global DesktopStackingClient and related interfaces.
- Fix the ChromeViewsDelegate so that it still sets context in chromeos builds.
- Rename content::ShellStackingClientAsh to content::MinimalAsh to reflect what it really does.
In addition, the following fix ups apply:
- Previously, WebContentsViewAura asserted that it needed a context window. Now if no context window is provided, it isn't added to an aura hierarchy. There are times when that context doesn't exist: various chromeos dialogs that directly invoke WebView and toplevel extension/app windows that are created from background pages that don't have contexts.
BUG=161882
Review URL: https://codereview.chromium.org/11829040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.cc')
-rw-r--r-- | ash/shell.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ash/shell.cc b/ash/shell.cc index f1c6d99..171c121 100644 --- a/ash/shell.cc +++ b/ash/shell.cc @@ -56,7 +56,6 @@ #include "ash/wm/session_state_controller.h" #include "ash/wm/session_state_controller_impl.h" #include "ash/wm/session_state_controller_impl2.h" -#include "ash/wm/stacking_controller.h" #include "ash/wm/system_gesture_event_filter.h" #include "ash/wm/system_modal_container_event_filter.h" #include "ash/wm/system_modal_container_layout_manager.h" @@ -71,7 +70,6 @@ #include "base/command_line.h" #include "base/debug/leak_annotations.h" #include "ui/aura/client/aura_constants.h" -#include "ui/aura/client/stacking_client.h" #include "ui/aura/client/user_action_client.h" #include "ui/aura/env.h" #include "ui/aura/focus_manager.h" @@ -502,9 +500,6 @@ void Shell::Init() { // Create Controllers that may need root window. // TODO(oshima): Move as many controllers before creating // RootWindowController as possible. - stacking_client_.reset(delegate_->CreateStackingClient()); - if (stacking_client_.get()) - aura::client::SetStackingClient(stacking_client_.get()); visibility_controller_.reset(new AshVisibilityController); drag_drop_controller_.reset(new internal::DragDropController); user_action_client_.reset(delegate_->CreateUserActionClient()); @@ -835,10 +830,6 @@ void Shell::DoInitialWorkspaceAnimation() { DoInitialAnimation(); } -aura::client::StackingClient* Shell::stacking_client() { - return stacking_client_.get(); -} - void Shell::InitRootWindowController( internal::RootWindowController* controller) { aura::RootWindow* root_window = controller->root_window(); |