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

Side by Side Diff: chromeos/ime/fake_ime_keyboard.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_ime_keyboard.h ('k') | chromeos/ime/fake_xkeyboard.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chromeos/ime/fake_xkeyboard.h" 5 #include "chromeos/ime/fake_ime_keyboard.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 FakeXKeyboard::FakeXKeyboard() 10 FakeImeKeyboard::FakeImeKeyboard()
11 : set_current_keyboard_layout_by_name_count_(0), 11 : set_current_keyboard_layout_by_name_count_(0),
12 caps_lock_is_enabled_(false), 12 caps_lock_is_enabled_(false),
13 auto_repeat_is_enabled_(false) { 13 auto_repeat_is_enabled_(false) {
14 } 14 }
15 15
16 void FakeXKeyboard::AddObserver(XKeyboard::Observer* observer) { 16 void FakeImeKeyboard::AddObserver(Observer* observer) {
17 } 17 }
18 18
19 void FakeXKeyboard::RemoveObserver(XKeyboard::Observer* observer) { 19 void FakeImeKeyboard::RemoveObserver(Observer* observer) {
20 } 20 }
21 21
22 bool FakeXKeyboard::SetCurrentKeyboardLayoutByName( 22 bool FakeImeKeyboard::SetCurrentKeyboardLayoutByName(
23 const std::string& layout_name) { 23 const std::string& layout_name) {
24 ++set_current_keyboard_layout_by_name_count_; 24 ++set_current_keyboard_layout_by_name_count_;
25 last_layout_ = layout_name; 25 last_layout_ = layout_name;
26 return true; 26 return true;
27 } 27 }
28 28
29 bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() { 29 bool FakeImeKeyboard::ReapplyCurrentKeyboardLayout() {
30 return true; 30 return true;
31 } 31 }
32 32
33 void FakeXKeyboard::ReapplyCurrentModifierLockStatus() { 33 void FakeImeKeyboard::ReapplyCurrentModifierLockStatus() {
34 } 34 }
35 35
36 void FakeXKeyboard::DisableNumLock() { 36 void FakeImeKeyboard::DisableNumLock() {
37 } 37 }
38 38
39 void FakeXKeyboard::SetCapsLockEnabled(bool enable_caps_lock) { 39 void FakeImeKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
40 caps_lock_is_enabled_ = enable_caps_lock; 40 caps_lock_is_enabled_ = enable_caps_lock;
41 } 41 }
42 42
43 bool FakeXKeyboard::CapsLockIsEnabled() { 43 bool FakeImeKeyboard::CapsLockIsEnabled() {
44 return caps_lock_is_enabled_; 44 return caps_lock_is_enabled_;
45 } 45 }
46 46
47 bool FakeXKeyboard::IsISOLevel5ShiftAvailable() const { 47 bool FakeImeKeyboard::IsISOLevel5ShiftAvailable() const {
48 return false; 48 return false;
49 } 49 }
50 50
51 bool FakeXKeyboard::IsAltGrAvailable() const { 51 bool FakeImeKeyboard::IsAltGrAvailable() const {
52 return false; 52 return false;
53 } 53 }
54 54
55 bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) { 55 bool FakeImeKeyboard::SetAutoRepeatEnabled(bool enabled) {
56 auto_repeat_is_enabled_ = enabled; 56 auto_repeat_is_enabled_ = enabled;
57 return true; 57 return true;
58 } 58 }
59 59
60 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { 60 bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
61 last_auto_repeat_rate_ = rate; 61 last_auto_repeat_rate_ = rate;
62 return true; 62 return true;
63 } 63 }
64 64
65 } // namespace input_method 65 } // namespace input_method
66 } // namespace chromeos 66 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/ime/fake_ime_keyboard.h ('k') | chromeos/ime/fake_xkeyboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698