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

Unified Diff: trunk/src/ui/aura/window_event_dispatcher.cc

Issue 205313002: Revert 258077 "Remove PrepareForShutdown" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | « trunk/src/ui/aura/window_event_dispatcher.h ('k') | trunk/src/ui/aura/window_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « trunk/src/ui/aura/window_event_dispatcher.h ('k') | trunk/src/ui/aura/window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698