Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / events / ozone / layout / stub / stub_keyboard_layout_engine.cc
blob83310a76453e7585513602a1aa1c5c199deab4fc
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.
5 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
7 #include <algorithm>
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"
16 namespace ui {
18 StubKeyboardLayoutEngine::StubKeyboardLayoutEngine() {
21 StubKeyboardLayoutEngine::~StubKeyboardLayoutEngine() {
24 bool StubKeyboardLayoutEngine::CanSetCurrentLayout() const {
25 return false;
28 bool StubKeyboardLayoutEngine::SetCurrentLayoutByName(
29 const std::string& layout_name) {
30 return false;
33 bool StubKeyboardLayoutEngine::UsesISOLevel5Shift() const {
34 return false;
37 bool StubKeyboardLayoutEngine::UsesAltGr() const {
38 return true;
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);
51 } // namespace ui