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

Side by Side Diff: chromeos/ime/fake_xkeyboard.cc

Issue 232333002: ozone: Rename XKeyboard to KeyboardController & use fake under ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to ImeKeyboard & rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/ime/fake_xkeyboard.h ('k') | chromeos/ime/ime_keyboard.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 "chromeos/ime/fake_xkeyboard.h"
6
7 namespace chromeos {
8 namespace input_method {
9
10 FakeXKeyboard::FakeXKeyboard()
11 : set_current_keyboard_layout_by_name_count_(0),
12 caps_lock_is_enabled_(false),
13 auto_repeat_is_enabled_(false) {
14 }
15
16 void FakeXKeyboard::AddObserver(XKeyboard::Observer* observer) {
17 }
18
19 void FakeXKeyboard::RemoveObserver(XKeyboard::Observer* observer) {
20 }
21
22 bool FakeXKeyboard::SetCurrentKeyboardLayoutByName(
23 const std::string& layout_name) {
24 ++set_current_keyboard_layout_by_name_count_;
25 last_layout_ = layout_name;
26 return true;
27 }
28
29 bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() {
30 return true;
31 }
32
33 void FakeXKeyboard::ReapplyCurrentModifierLockStatus() {
34 }
35
36 void FakeXKeyboard::DisableNumLock() {
37 }
38
39 void FakeXKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
40 caps_lock_is_enabled_ = enable_caps_lock;
41 }
42
43 bool FakeXKeyboard::CapsLockIsEnabled() {
44 return caps_lock_is_enabled_;
45 }
46
47 bool FakeXKeyboard::IsISOLevel5ShiftAvailable() const {
48 return false;
49 }
50
51 bool FakeXKeyboard::IsAltGrAvailable() const {
52 return false;
53 }
54
55 bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) {
56 auto_repeat_is_enabled_ = enabled;
57 return true;
58 }
59
60 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
61 last_auto_repeat_rate_ = rate;
62 return true;
63 }
64
65 } // namespace input_method
66 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/ime/fake_xkeyboard.h ('k') | chromeos/ime/ime_keyboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698