Index: chrome/browser/ui/panels/panel_mouse_watcher_timer.cc |
diff --git a/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc b/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc |
index 01a76256974536515dfccbc994f8b518645f6d79..0006c6b2d26ab8e1ffdfb9393d1951b4f70280f8 100644 |
--- a/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc |
+++ b/chrome/browser/ui/panels/panel_mouse_watcher_timer.cc |
@@ -18,6 +18,7 @@ class PanelMouseWatcherTimer : public PanelMouseWatcher { |
virtual void Start() OVERRIDE; |
virtual void Stop() OVERRIDE; |
virtual bool IsActive() const OVERRIDE; |
+ virtual gfx::Point GetMousePosition() const OVERRIDE; |
// Specifies the rate at which we want to sample the mouse position. |
static const int kMousePollingIntervalMs = 250; |
@@ -63,6 +64,10 @@ bool PanelMouseWatcherTimer::IsActive() const { |
return timer_.IsRunning(); |
} |
+gfx::Point PanelMouseWatcherTimer::GetMousePosition() const { |
+ return gfx::Screen::GetCursorScreenPoint(); |
+} |
+ |
void PanelMouseWatcherTimer::DoWork() { |
- NotifyMouseMovement(gfx::Screen::GetCursorScreenPoint()); |
+ NotifyMouseMovement(GetMousePosition()); |
} |