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

Unified Diff: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.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
Index: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
index 5307f73754a2200de17fa698c334b2fd6c5bc878..aa410e11ddf1f6655f7c35e158b55d28242cfe69 100644
--- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
+++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
@@ -715,8 +715,7 @@ bool XkbKeyboardLayoutEngine::UsesAltGr() const {
bool XkbKeyboardLayoutEngine::Lookup(DomCode dom_code,
int flags,
DomKey* dom_key,
- KeyboardCode* key_code,
- uint32_t* platform_keycode) const {
+ KeyboardCode* key_code) const {
if (dom_code == DomCode::NONE)
return false;
// Convert DOM physical key to XKB representation.
@@ -733,7 +732,6 @@ bool XkbKeyboardLayoutEngine::Lookup(DomCode dom_code,
uint32_t character = 0;
if (!XkbLookup(xkb_keycode, xkb_flags, &xkb_keysym, &character))
return false;
- *platform_keycode = xkb_keysym;
// Classify the keysym and convert to DOM and VKEY representations.
*dom_key = NonPrintableXKeySymToDomKey(xkb_keysym);
if (*dom_key == DomKey::NONE) {

Powered by Google App Engine
This is Rietveld 408576698