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

Unified Diff: chrome/browser/ui/panels/test_panel_mouse_watcher.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/test_panel_mouse_watcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/test_panel_mouse_watcher.cc
diff --git a/chrome/browser/ui/panels/test_panel_mouse_watcher.cc b/chrome/browser/ui/panels/test_panel_mouse_watcher.cc
index ddc21a1d88379aaf1e790b7dafbb363a504ef37e..d38f7d85667702948b7ea2de5a49c9efaa708efc 100644
--- a/chrome/browser/ui/panels/test_panel_mouse_watcher.cc
+++ b/chrome/browser/ui/panels/test_panel_mouse_watcher.cc
@@ -27,3 +27,13 @@ void TestPanelMouseWatcher::Stop() {
bool TestPanelMouseWatcher::IsActive() const {
return started_;
}
+
+void TestPanelMouseWatcher::NotifyMouseMovement(
+ const gfx::Point& mouse_position) {
+ mouse_position_ = mouse_position;
+ PanelMouseWatcher::NotifyMouseMovement(mouse_position);
+}
+
+gfx::Point TestPanelMouseWatcher::GetMousePosition() const {
+ return mouse_position_;
+}
« no previous file with comments | « chrome/browser/ui/panels/test_panel_mouse_watcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698