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

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: 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..691d5d21c4c2b8a016242246790ab9d5fb1db746 100644
--- a/chrome/browser/ui/panels/panel_mouse_watcher.h
+++ b/chrome/browser/ui/panels/panel_mouse_watcher.h
@@ -29,11 +29,14 @@ class PanelMouseWatcher {
void AddObserver(PanelMouseWatcherObserver* observer);
void RemoveObserver(PanelMouseWatcherObserver* observer);
+ // Returns current mouse position.
jianli 2012/05/15 22:59:47 Please comment that this would return the latest m
jennb 2012/05/16 00:47:09 Done.
+ 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;

Powered by Google App Engine
This is Rietveld 408576698