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

Side by Side Diff: ui/base/ime/chromeos/ime_keyboard_ozone.cc

Issue 750353004: Revert of Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/base/ime/chromeos/ime_keyboard_ozone.h ('k') | ui/base/ime/chromeos/ime_keyboard_x11.h » ('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/base/ime/chromeos/ime_keyboard_ozone.h"
6
7 namespace chromeos {
8 namespace input_method {
9
10
11 ImeKeyboardOzone::ImeKeyboardOzone() {
12 }
13
14
15 ImeKeyboardOzone::~ImeKeyboardOzone() {
16 }
17
18 bool ImeKeyboardOzone::SetCurrentKeyboardLayoutByName(
19 const std::string& layout_name) {
20 // Call SetKeyMapping here.
21 // TODO: parse out layout name and variation.
22 last_layout_ = layout_name;
23 return true;
24 }
25
26 bool ImeKeyboardOzone::ReapplyCurrentKeyboardLayout() {
27 return SetCurrentKeyboardLayoutByName(last_layout_);
28 }
29
30 void ImeKeyboardOzone::SetCapsLockEnabled(bool enable_caps_lock) {
31 // Call SetModifierStates here.
32 ImeKeyboard::SetCapsLockEnabled(enable_caps_lock);
33 }
34
35 bool ImeKeyboardOzone::CapsLockIsEnabled() {
36 // Call getModifierStates here.
37 return ImeKeyboard::CapsLockIsEnabled();
38 }
39
40 void ImeKeyboardOzone::ReapplyCurrentModifierLockStatus() {
41 // call SetModifierStates here.
42 }
43
44 void ImeKeyboardOzone::DisableNumLock() {
45 }
46
47 bool ImeKeyboardOzone::SetAutoRepeatRate(const AutoRepeatRate& rate) {
48 return true;
49 }
50
51 bool ImeKeyboardOzone::SetAutoRepeatEnabled(bool enabled) {
52 return true;
53 }
54
55 // static
56 ImeKeyboard* ImeKeyboard::Create() {
57 return new ImeKeyboardOzone();
58 }
59
60 } // namespace input_method
61 } // namespace chromeos
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/ime_keyboard_ozone.h ('k') | ui/base/ime/chromeos/ime_keyboard_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698