Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: chrome/browser/ui/panels/panel_mouse_watcher_timer.cc

Issue 10384192: Prevent title-only panel from fully minimizing when attention is cleared if mouse is in the panel o… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment changed Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/panel_mouse_watcher.h ('k') | chrome/browser/ui/panels/test_panel_mouse_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « chrome/browser/ui/panels/panel_mouse_watcher.h ('k') | chrome/browser/ui/panels/test_panel_mouse_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698