| 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 7abf0ef49375af714af3a81d63d62363ac31aac9..ae80e24b3660abac625b61f653dc28d240e1b927 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| @@ -1032,6 +1032,16 @@ void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) {
|
| window_->layer()->SetFillsBoundsOpaquely(background.isOpaque());
|
| }
|
|
|
| +void RenderWidgetHostViewAura::ScrollOffsetChanged() {
|
| + aura::RootWindow* root = window_->GetRootWindow();
|
| + if (!root)
|
| + return;
|
| + aura::client::CursorClient* cursor_client =
|
| + aura::client::GetCursorClient(root);
|
| + if (cursor_client && !cursor_client->IsCursorVisible())
|
| + cursor_client->DisableMouseEvents();
|
| +}
|
| +
|
| void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) {
|
| GetScreenInfoForWindow(results, window_->GetRootWindow() ? window_ : NULL);
|
| }
|
| @@ -1091,7 +1101,7 @@ bool RenderWidgetHostViewAura::LockMouse() {
|
| aura::client::CursorClient* cursor_client =
|
| aura::client::GetCursorClient(root_window);
|
| if (cursor_client)
|
| - cursor_client->DisableMouseEvents();
|
| + cursor_client->HideCursor();
|
| synthetic_move_sent_ = true;
|
| window_->MoveCursorTo(gfx::Rect(window_->bounds().size()).CenterPoint());
|
| if (aura::client::GetTooltipClient(root_window))
|
| @@ -1111,7 +1121,7 @@ void RenderWidgetHostViewAura::UnlockMouse() {
|
| aura::client::CursorClient* cursor_client =
|
| aura::client::GetCursorClient(root_window);
|
| if (cursor_client)
|
| - cursor_client->EnableMouseEvents();
|
| + cursor_client->ShowCursor();
|
| if (aura::client::GetTooltipClient(root_window))
|
| aura::client::GetTooltipClient(root_window)->SetTooltipsEnabled(true);
|
|
|
|
|