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

Side by Side Diff: ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc

Issue 1284433002: Revise ui::DomKey to unify character and non-character codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IsDead 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h" 5 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/events/event.h" 10 #include "ui/events/event.h"
(...skipping 23 matching lines...) Expand all
34 return false; 34 return false;
35 } 35 }
36 36
37 bool StubKeyboardLayoutEngine::UsesAltGr() const { 37 bool StubKeyboardLayoutEngine::UsesAltGr() const {
38 return true; 38 return true;
39 } 39 }
40 40
41 bool StubKeyboardLayoutEngine::Lookup(DomCode dom_code, 41 bool StubKeyboardLayoutEngine::Lookup(DomCode dom_code,
42 int flags, 42 int flags,
43 DomKey* out_dom_key, 43 DomKey* out_dom_key,
44 base::char16* out_character,
45 KeyboardCode* out_key_code, 44 KeyboardCode* out_key_code,
46 uint32* platform_keycode) const { 45 uint32* platform_keycode) const {
47 return DomCodeToUsLayoutMeaning(dom_code, flags, out_dom_key, out_character, 46 return DomCodeToUsLayoutDomKey(dom_code, flags, out_dom_key, out_key_code);
48 out_key_code);
49 } 47 }
50 48
51 } // namespace ui 49 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h ('k') | ui/events/ozone/layout/xkb/xkb_keyboard_code_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698