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

Unified Diff: ui/views/corewm/tooltip_controller.h

Issue 274753002: Ignores mouse motion events when mouse is pressed or drag and drop is in progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | ui/views/corewm/tooltip_controller.cc » ('j') | ui/views/corewm/tooltip_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/tooltip_controller.h
diff --git a/ui/views/corewm/tooltip_controller.h b/ui/views/corewm/tooltip_controller.h
index 9815df1817a46d4f76cf17c459310b0502a34ead..0b86a4a85d971fda9292090081fb9fab96e1e9eb 100644
--- a/ui/views/corewm/tooltip_controller.h
+++ b/ui/views/corewm/tooltip_controller.h
@@ -57,6 +57,9 @@ class VIEWS_EXPORT TooltipController : public aura::client::TooltipClient,
private:
friend class test::TooltipControllerTestHelper;
+ // Dispatches mouse events in a posted task.
+ void DispatchMouseEvent(ui::EventType event_type, aura::Window* target);
+
void TooltipTimerFired();
void TooltipShownTimerFired();
@@ -94,6 +97,12 @@ class VIEWS_EXPORT TooltipController : public aura::client::TooltipClient,
// this timer fires.
base::OneShotTimer<TooltipController> tooltip_shown_timer_;
+ // Timer to throttle mouse movement events.
+ base::OneShotTimer<TooltipController> mouse_event_timer_;
+
+ // Location of the last event in screen coordinates.
+ gfx::Point last_mouse_location_;
+
// Location of the last event in |tooltip_window_|'s coordinates.
gfx::Point curr_mouse_loc_;
« no previous file with comments | « no previous file | ui/views/corewm/tooltip_controller.cc » ('j') | ui/views/corewm/tooltip_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698