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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 1236923003: Makes DesktopWindowTreeHostXxx to dispatch key event to InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO. Created 5 years, 5 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/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index 93b3c5b81fb0927a6134015c583a1dbee7f7c4a3..17888bc6231a09272613d6b8f396624cc045a599 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -804,15 +804,9 @@ bool DesktopWindowTreeHostWin::HandleMouseEvent(const ui::MouseEvent& event) {
return event.handled();
}
-bool DesktopWindowTreeHostWin::HandleKeyEvent(const ui::KeyEvent& event) {
- return false;
-}
-
-bool DesktopWindowTreeHostWin::HandleUntranslatedKeyEvent(
- const ui::KeyEvent& event) {
- ui::KeyEvent duplicate_event(event);
- SendEventToProcessor(&duplicate_event);
- return duplicate_event.handled();
+void DesktopWindowTreeHostWin::HandleKeyEvent(ui::KeyEvent* event) {
+ GetInputMethod()->DispatchKeyEvent(*event);
+ event->StopPropagation();
}
void DesktopWindowTreeHostWin::HandleTouchEvent(

Powered by Google App Engine
This is Rietveld 408576698