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

Unified Diff: ui/platform_window/android/platform_window_android.cc

Issue 1312833006: Remove ui::KeyEvent::platform_keycode_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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/events/x/events_x.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/android/platform_window_android.cc
diff --git a/ui/platform_window/android/platform_window_android.cc b/ui/platform_window/android/platform_window_android.cc
index 8c8dbf675030e43749b0f04182a6f1ea5d653699..94500a25ebf30a0da68b9889b1ed599345df049c 100644
--- a/ui/platform_window/android/platform_window_android.cc
+++ b/ui/platform_window/android/platform_window_android.cc
@@ -132,12 +132,10 @@ bool PlatformWindowAndroid::KeyEvent(JNIEnv* env,
jint unicode_character) {
ui::KeyEvent key_event(pressed ? ui::ET_KEY_PRESSED : ui::ET_KEY_RELEASED,
ui::KeyboardCodeFromAndroidKeyCode(key_code), 0);
- key_event.set_platform_keycode(key_code);
delegate_->DispatchEvent(&key_event);
if (pressed && unicode_character) {
ui::KeyEvent char_event(unicode_character,
ui::KeyboardCodeFromAndroidKeyCode(key_code), 0);
- char_event.set_platform_keycode(key_code);
delegate_->DispatchEvent(&char_event);
}
return true;
« no previous file with comments | « ui/events/x/events_x.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698