Index: trunk/src/ui/aura/window_event_dispatcher.cc |
=================================================================== |
--- trunk/src/ui/aura/window_event_dispatcher.cc (revision 258102) |
+++ trunk/src/ui/aura/window_event_dispatcher.cc (working copy) |
@@ -92,6 +92,12 @@ |
ui::GestureRecognizer::Get()->RemoveGestureEventHelper(this); |
} |
+void WindowEventDispatcher::PrepareForShutdown() { |
+ host_->PrepareForShutdown(); |
+ // discard synthesize event request as well. |
+ synthesize_mouse_move_ = false; |
+} |
+ |
void WindowEventDispatcher::RepostEvent(const ui::LocatedEvent& event) { |
DCHECK(event.type() == ui::ET_MOUSE_PRESSED || |
event.type() == ui::ET_GESTURE_TAP_DOWN); |