| Index: ash/ui_controls_ash.cc
|
| diff --git a/ash/ui_controls_ash.cc b/ash/ui_controls_ash.cc
|
| index f2aba71303c98c5f9995eb7f1b2d42515b3ae8d7..df7c6e57f335adf206d17c95530331771f380e27 100644
|
| --- a/ash/ui_controls_ash.cc
|
| +++ b/ash/ui_controls_ash.cc
|
| @@ -107,7 +107,7 @@ class UIControlsAsh : public ui_controls::UIControlsAura {
|
|
|
| virtual bool SendMouseEvents(ui_controls::MouseButton type,
|
| int state) OVERRIDE {
|
| - gfx::Point p(gfx::Screen::GetCursorScreenPoint());
|
| + gfx::Point p(Shell::GetAshScreen()->GetCursorScreenPoint());
|
| ui_controls::UIControlsAura* ui_controls = GetUIControlsAt(&p);
|
| return ui_controls && ui_controls->SendMouseEvents(type, state);
|
| }
|
| @@ -116,14 +116,14 @@ class UIControlsAsh : public ui_controls::UIControlsAura {
|
| ui_controls::MouseButton type,
|
| int state,
|
| const base::Closure& closure) OVERRIDE {
|
| - gfx::Point p(gfx::Screen::GetCursorScreenPoint());
|
| + gfx::Point p(Shell::GetAshScreen()->GetCursorScreenPoint());
|
| ui_controls::UIControlsAura* ui_controls = GetUIControlsAt(&p);
|
| return ui_controls && ui_controls->SendMouseEventsNotifyWhenDone(
|
| type, state, closure);
|
| }
|
|
|
| virtual bool SendMouseClick(ui_controls::MouseButton type) OVERRIDE {
|
| - gfx::Point p(gfx::Screen::GetCursorScreenPoint());
|
| + gfx::Point p(Shell::GetAshScreen()->GetCursorScreenPoint());
|
| ui_controls::UIControlsAura* ui_controls = GetUIControlsAt(&p);
|
| return ui_controls && ui_controls->SendMouseClick(type);
|
| }
|
|
|