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

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: Add test for mouse input info agreement between widget and view 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
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 025ceb9b24290deca178a2dcf43a4098bff7c26e..03f61df34874747b8217f5b97910a3ce18ae8b1e 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -73,7 +73,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;
« ui/views/mus/native_widget_mus_unittest.cc ('K') | « 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