| Index: content/browser/renderer_host/render_widget_host_view_aura.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| index 9d571456d73ef7d22319157bd29a3df6f13ef4da..d47d49201bf8b9e6eb9b7719cd6da421288d8816 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| @@ -27,9 +27,9 @@
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
|
| #include "ui/aura/client/aura_constants.h"
|
| +#include "ui/aura/client/cursor_client.h"
|
| #include "ui/aura/client/tooltip_client.h"
|
| #include "ui/aura/client/window_types.h"
|
| -#include "ui/aura/cursor_manager.h"
|
| #include "ui/aura/env.h"
|
| #include "ui/aura/event.h"
|
| #include "ui/aura/root_window.h"
|
| @@ -717,7 +717,10 @@ bool RenderWidgetHostViewAura::LockMouse() {
|
|
|
| mouse_locked_ = true;
|
| window_->SetCapture();
|
| - aura::Env::GetInstance()->cursor_manager()->ShowCursor(false);
|
| + aura::client::CursorClient* cursor_client =
|
| + aura::client::GetCursorClient(root_window);
|
| + if (cursor_client)
|
| + cursor_client->ShowCursor(false);
|
| synthetic_move_sent_ = true;
|
| window_->MoveCursorTo(gfx::Rect(window_->bounds().size()).CenterPoint());
|
| if (aura::client::GetTooltipClient(root_window))
|
| @@ -734,7 +737,10 @@ void RenderWidgetHostViewAura::UnlockMouse() {
|
|
|
| window_->ReleaseCapture();
|
| window_->MoveCursorTo(unlocked_mouse_position_);
|
| - aura::Env::GetInstance()->cursor_manager()->ShowCursor(true);
|
| + aura::client::CursorClient* cursor_client =
|
| + aura::client::GetCursorClient(root_window);
|
| + if (cursor_client)
|
| + cursor_client->ShowCursor(true);
|
| if (aura::client::GetTooltipClient(root_window))
|
| aura::client::GetTooltipClient(root_window)->SetTooltipsEnabled(true);
|
|
|
|
|