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

Unified Diff: ui/events/ozone/evdev/keyboard_evdev.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/events_stub.cc ('k') | ui/events/ozone/events_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/keyboard_evdev.cc
diff --git a/ui/events/ozone/evdev/keyboard_evdev.cc b/ui/events/ozone/evdev/keyboard_evdev.cc
index cbd18904e45a19d748b6caa4f93846e63931639a..2f1c6e0385a5d4798aa49d0c787502d809ba6582 100644
--- a/ui/events/ozone/evdev/keyboard_evdev.cc
+++ b/ui/events/ozone/evdev/keyboard_evdev.cc
@@ -212,11 +212,8 @@ void KeyboardEvdev::DispatchKey(unsigned int key,
int flags = modifiers_->GetModifierFlags();
DomKey dom_key;
KeyboardCode key_code;
- uint32 platform_keycode = 0;
- if (!keyboard_layout_engine_->Lookup(dom_code, flags, &dom_key,
- &key_code, &platform_keycode)) {
+ if (!keyboard_layout_engine_->Lookup(dom_code, flags, &dom_key, &key_code))
return;
- }
if (!repeat) {
int flag = ModifierDomKeyToEventFlag(dom_key);
UpdateModifier(flag, down);
@@ -225,8 +222,7 @@ void KeyboardEvdev::DispatchKey(unsigned int key,
KeyEvent event(down ? ET_KEY_PRESSED : ET_KEY_RELEASED, key_code, dom_code,
modifiers_->GetModifierFlags(), dom_key, timestamp);
event.set_source_device_id(device_id);
- if (platform_keycode)
- event.set_platform_keycode(platform_keycode);
callback_.Run(&event);
}
+
} // namespace ui
« no previous file with comments | « ui/events/events_stub.cc ('k') | ui/events/ozone/events_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698