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_; |