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

Unified Diff: ui/views/corewm/input_method_event_filter.cc

Issue 147203004: aura: Remove event-dispatch methods from WindowTreeHostDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 11 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/corewm/input_method_event_filter.cc
diff --git a/ui/views/corewm/input_method_event_filter.cc b/ui/views/corewm/input_method_event_filter.cc
index 91f997c6a3b7611f18dd3668037dc43638cb43a0..9e8843fc18ed4325a3eccac64bcd4fdb7223534d 100644
--- a/ui/views/corewm/input_method_event_filter.cc
+++ b/ui/views/corewm/input_method_event_filter.cc
@@ -64,8 +64,10 @@ bool InputMethodEventFilter::DispatchKeyEventPostIME(
DCHECK_NE(event.native_event().message, static_cast<UINT>(WM_CHAR));
#endif
ui::TranslatedKeyEvent aura_event(event);
- return target_dispatcher_->AsWindowTreeHostDelegate()->OnHostKeyEvent(
- &aura_event);
+ ui::EventDispatchDetails details =
+ target_dispatcher_->OnEventFromSource(&aura_event);
+ CHECK(!details.dispatcher_destroyed);
+ return aura_event.handled();
}
} // namespace corewm
« no previous file with comments | « ui/views/corewm/compound_event_filter_unittest.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698