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

Unified Diff: chrome/browser/ui/panels/panel_mouse_watcher.h

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
Index: chrome/browser/ui/panels/panel_mouse_watcher.h
diff --git a/chrome/browser/ui/panels/panel_mouse_watcher.h b/chrome/browser/ui/panels/panel_mouse_watcher.h
index df6e2bac2f4a4021bfc434752094e4ff8a93d413..b885f882889dd08807a2d86fecd4c32f93f741b6 100644
--- a/chrome/browser/ui/panels/panel_mouse_watcher.h
+++ b/chrome/browser/ui/panels/panel_mouse_watcher.h
@@ -29,11 +29,15 @@ class PanelMouseWatcher {
void AddObserver(PanelMouseWatcherObserver* observer);
void RemoveObserver(PanelMouseWatcherObserver* observer);
+ // Returns current mouse position. This may be different from the
+ // mouse position in NotifyMouseMovement.
+ virtual gfx::Point GetMousePosition() const = 0;
+
protected:
PanelMouseWatcher();
// |mouse_position| is in screen coordinates.
- void NotifyMouseMovement(const gfx::Point& mouse_position);
+ virtual void NotifyMouseMovement(const gfx::Point& mouse_position);
// Returns true if watching mouse movements.
virtual bool IsActive() const = 0;
« no previous file with comments | « chrome/browser/ui/panels/panel_drag_browsertest.cc ('k') | chrome/browser/ui/panels/panel_mouse_watcher_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698