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

Unified Diff: ash/host/ash_window_tree_host_unified.cc

Issue 1113493002: Don't dispatch event after shutdown on AshWTHUnified (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: ash/host/ash_window_tree_host_unified.cc
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc
index 4317365fc15e466a752030b5303cc9be6389662c..b62de2e26e13321a3a794a3fad6070d2f84e3c22 100644
--- a/ash/host/ash_window_tree_host_unified.cc
+++ b/ash/host/ash_window_tree_host_unified.cc
@@ -10,6 +10,7 @@
#include "ui/aura/window_targeter.h"
#include "ui/compositor/compositor.h"
#include "ui/events/event_processor.h"
+#include "ui/events/null_event_targeter.h"
#include "ui/gfx/geometry/insets.h"
namespace ash {
@@ -56,6 +57,9 @@ AshWindowTreeHostUnified::~AshWindowTreeHostUnified() {
}
void AshWindowTreeHostUnified::PrepareForShutdown() {
+ window()->SetEventTargeter(
+ scoped_ptr<ui::EventTargeter>(new ui::NullEventTargeter));
+
for (auto host : mirroring_hosts_)
host->PrepareForShutdown();
}
« ash/display/display_controller.cc ('K') | « ash/display/mirror_window_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698