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

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

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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
« no previous file with comments | « ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h ('k') | ui/events/platform/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
6
7 #include <algorithm>
8
9 #include "base/strings/string16.h"
10 #include "ui/events/event.h"
11 #include "ui/events/keycodes/dom/dom_code.h"
12 #include "ui/events/keycodes/dom/dom_key.h"
13 #include "ui/events/keycodes/keyboard_code_conversion.h"
14 #include "ui/events/ozone/layout/layout_util.h"
15
16 namespace ui {
17
18 StubKeyboardLayoutEngine::StubKeyboardLayoutEngine() {
19 }
20
21 StubKeyboardLayoutEngine::~StubKeyboardLayoutEngine() {
22 }
23
24 bool StubKeyboardLayoutEngine::CanSetCurrentLayout() const {
25 return false;
26 }
27
28 bool StubKeyboardLayoutEngine::SetCurrentLayoutByName(
29 const std::string& layout_name) {
30 return false;
31 }
32
33 bool StubKeyboardLayoutEngine::UsesISOLevel5Shift() const {
34 return false;
35 }
36
37 bool StubKeyboardLayoutEngine::UsesAltGr() const {
38 return true;
39 }
40
41 bool StubKeyboardLayoutEngine::Lookup(DomCode dom_code,
42 int flags,
43 DomKey* out_dom_key,
44 base::char16* out_character,
45 KeyboardCode* out_key_code,
46 uint32* platform_keycode) const {
47 return DomCodeToUsLayoutMeaning(dom_code, flags, out_dom_key, out_character,
48 out_key_code);
49 }
50
51 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h ('k') | ui/events/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698