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

Unified Diff: ui/views/mus/window_tree_host_mus.cc

Issue 2013503002: Keep non-key event handling in-house for NativeWidgetMus Base URL: https://chromium.googlesource.com/chromium/src.git@native_widget_mus9
Patch Set: Use aura::EnvInputStateController for mouse events Created 4 years, 7 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 | « ui/views/mus/native_widget_mus_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_tree_host_mus.cc
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc
index 3251c96febfb4349bfa649da5436a64fdf3e9f7b..25194f54980ad63cc6b3a3888818ad91ab714624 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -72,7 +72,10 @@ WindowTreeHostMus::~WindowTreeHostMus() {
}
void WindowTreeHostMus::DispatchEvent(ui::Event* event) {
- if (event->IsKeyEvent() && GetInputMethod()) {
+ // TODO(markdittmer): This flow is going away. For now, it is only intended
+ // for managing key events.
+ DCHECK(event->IsKeyEvent());
+ if (GetInputMethod()) {
GetInputMethod()->DispatchKeyEvent(event->AsKeyEvent());
event->StopPropagation();
return;
« no previous file with comments | « ui/views/mus/native_widget_mus_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698