Index: ui/aura/window_event_dispatcher.cc |
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc |
index a21236ac38558d4daa23c68c62f3bf8a84b1032a..cd878c7898cf5a38c64ff614911b1bf1ec8d1306 100644 |
--- a/ui/aura/window_event_dispatcher.cc |
+++ b/ui/aura/window_event_dispatcher.cc |
@@ -158,6 +158,17 @@ DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint( |
return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED); |
} |
+void WindowEventDispatcher::PostSynthesizeMouseMove() { |
+ if (synthesize_mouse_move_) |
+ return; |
+ synthesize_mouse_move_ = true; |
+ base::MessageLoop::current()->PostNonNestableTask( |
+ FROM_HERE, |
+ base::Bind(base::IgnoreResult( |
+ &WindowEventDispatcher::SynthesizeMouseMoveEvent), |
+ held_event_factory_.GetWeakPtr())); |
+} |
+ |
void WindowEventDispatcher::ProcessedTouchEvent(Window* window, |
ui::EventResult result) { |
scoped_ptr<ui::GestureRecognizer::Gestures> gestures( |
@@ -685,17 +696,6 @@ ui::EventDispatchDetails WindowEventDispatcher::DispatchHeldEvents() { |
return dispatch_details; |
} |
-void WindowEventDispatcher::PostSynthesizeMouseMove() { |
- if (synthesize_mouse_move_) |
- return; |
- synthesize_mouse_move_ = true; |
- base::MessageLoop::current()->PostNonNestableTask( |
- FROM_HERE, |
- base::Bind(base::IgnoreResult( |
- &WindowEventDispatcher::SynthesizeMouseMoveEvent), |
- held_event_factory_.GetWeakPtr())); |
-} |
- |
void WindowEventDispatcher::SynthesizeMouseMoveAfterChangeToWindow( |
Window* window) { |
if (window->IsVisible() && |