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

Unified Diff: ui/base/ime/input_method_linux_x11.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_linux_x11.h ('k') | ui/base/ime/input_method_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_linux_x11.cc
diff --git a/ui/base/ime/input_method_linux_x11.cc b/ui/base/ime/input_method_linux_x11.cc
index 59737616c29df806fe00ecfcaa7f520247c7af5c..62abed93aad933fad267651c6df14afaef3402cf 100644
--- a/ui/base/ime/input_method_linux_x11.cc
+++ b/ui/base/ime/input_method_linux_x11.cc
@@ -45,8 +45,11 @@ bool InputMethodLinuxX11::OnUntranslatedIMEMessage(
return false;
}
-bool InputMethodLinuxX11::DispatchKeyEvent(
- const base::NativeEvent& native_key_event) {
+bool InputMethodLinuxX11::DispatchKeyEvent(const ui::KeyEvent& event) {
+ if (!event.HasNativeEvent())
+ return DispatchFabricatedKeyEvent(event);
+
+ const base::NativeEvent& native_key_event = event.native_event();
EventType event_type = EventTypeFromNative(native_key_event);
DCHECK(event_type == ET_KEY_PRESSED || event_type == ET_KEY_RELEASED);
DCHECK(system_toplevel_window_focused());
« no previous file with comments | « ui/base/ime/input_method_linux_x11.h ('k') | ui/base/ime/input_method_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698