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

Unified Diff: ui/base/ime/input_method_win.cc

Issue 45733008: sk6_charactercomposer: Merged DispatchKeyEvent and its fabricated version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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/base/ime/input_method_win.h ('k') | ui/base/ime/mock_input_method.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_win.cc
diff --git a/ui/base/ime/input_method_win.cc b/ui/base/ime/input_method_win.cc
index adefd8892eab79b6bfd82d53c7620861c8684532..a27db1f4e38acf0f35cb963eda8c3ed2d06eb0c4 100644
--- a/ui/base/ime/input_method_win.cc
+++ b/ui/base/ime/input_method_win.cc
@@ -37,8 +37,11 @@ void InputMethodWin::Init(bool focused) {
InputMethodBase::Init(focused);
}
-bool InputMethodWin::DispatchKeyEvent(
- const base::NativeEvent& native_key_event) {
+bool InputMethodWin::DispatchKeyEvent(const ui::KeyEvent& event) {
+ if (!event.HasNativeEvent())
+ return DispatchFabricatedKeyEvent(event);
+
+ const base::NativeEvent& native_key_event = event.native_event();
if (native_key_event.message == WM_CHAR) {
BOOL handled;
OnChar(native_key_event.hwnd, native_key_event.message,
« no previous file with comments | « ui/base/ime/input_method_win.h ('k') | ui/base/ime/mock_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698