| Index: ash/shell.cc
|
| diff --git a/ash/shell.cc b/ash/shell.cc
|
| index 5c7b97546901a3eba0ae627413ce838f9e69d60e..d983fda2f74efdb2fb846b0ab9f8c29134bea27f 100644
|
| --- a/ash/shell.cc
|
| +++ b/ash/shell.cc
|
| @@ -69,7 +69,6 @@
|
| #include "grit/ui_resources.h"
|
| #include "ui/aura/client/aura_constants.h"
|
| #include "ui/aura/client/user_action_client.h"
|
| -#include "ui/aura/cursor_manager.h"
|
| #include "ui/aura/env.h"
|
| #include "ui/aura/focus_manager.h"
|
| #include "ui/aura/layout_manager.h"
|
| @@ -199,7 +198,7 @@ Shell::~Shell() {
|
| if (active_root_window_)
|
| active_root_window_->GetFocusManager()->SetFocusedWindow(NULL, NULL);
|
|
|
| - aura::Env::GetInstance()->cursor_manager()->set_delegate(NULL);
|
| + cursor_manager_.set_delegate(NULL);
|
|
|
| // Please keep in same order as in Init() because it's easy to miss one.
|
| RemoveEnvEventFilter(user_activity_detector_.get());
|
| @@ -365,8 +364,7 @@ void Shell::Init() {
|
| // Pass ownership of the filter to the Env.
|
| aura::Env::GetInstance()->SetEventFilter(env_filter_);
|
|
|
| - aura::Env::GetInstance()->cursor_manager()->set_delegate(this);
|
| -
|
| + cursor_manager_.set_delegate(this);
|
|
|
| focus_manager_.reset(new aura::FocusManager);
|
| activation_controller_.reset(
|
| @@ -496,7 +494,7 @@ void Shell::Init() {
|
| display_controller_->InitSecondaryDisplays();
|
|
|
| if (initially_hide_cursor_)
|
| - aura::Env::GetInstance()->cursor_manager()->ShowCursor(false);
|
| + cursor_manager_.ShowCursor(false);
|
| }
|
|
|
| void Shell::AddEnvEventFilter(aura::EventFilter* filter) {
|
| @@ -695,6 +693,7 @@ void Shell::InitRootWindowController(
|
| aura::client::SetVisibilityClient(root_window, visibility_controller_.get());
|
| aura::client::SetDragDropClient(root_window, drag_drop_controller_.get());
|
| aura::client::SetCaptureClient(root_window, capture_controller_.get());
|
| + aura::client::SetCursorClient(root_window, &cursor_manager_);
|
|
|
| if (nested_dispatcher_controller_.get()) {
|
| aura::client::SetDispatcherClient(root_window,
|
|
|