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

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

Issue 232333002: ozone: Rename XKeyboard to KeyboardController & use fake under ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_keyboard_controller.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 FakeXKeyboard::FakeXKeyboard() 10 FakeKeyboardController::FakeKeyboardController()
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 bool FakeXKeyboard::SetCurrentKeyboardLayoutByName( 16 bool FakeKeyboardController::SetCurrentKeyboardLayoutByName(
17 const std::string& layout_name) { 17 const std::string& layout_name) {
18 ++set_current_keyboard_layout_by_name_count_; 18 ++set_current_keyboard_layout_by_name_count_;
19 last_layout_ = layout_name; 19 last_layout_ = layout_name;
20 return true; 20 return true;
21 } 21 }
22 22
23 bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() { 23 bool FakeKeyboardController::ReapplyCurrentKeyboardLayout() {
24 return true; 24 return true;
25 } 25 }
26 26
27 void FakeXKeyboard::ReapplyCurrentModifierLockStatus() { 27 void FakeKeyboardController::ReapplyCurrentModifierLockStatus() {
28 } 28 }
29 29
30 void FakeXKeyboard::DisableNumLock() { 30 void FakeKeyboardController::DisableNumLock() {
31 } 31 }
32 32
33 void FakeXKeyboard::SetCapsLockEnabled(bool enable_caps_lock) { 33 void FakeKeyboardController::SetCapsLockEnabled(bool enable_caps_lock) {
34 caps_lock_is_enabled_ = enable_caps_lock; 34 caps_lock_is_enabled_ = enable_caps_lock;
35 } 35 }
36 36
37 bool FakeXKeyboard::CapsLockIsEnabled() { 37 bool FakeKeyboardController::CapsLockIsEnabled() {
38 return caps_lock_is_enabled_; 38 return caps_lock_is_enabled_;
39 } 39 }
40 40
41 bool FakeXKeyboard::IsISOLevel5ShiftAvailable() const { 41 bool FakeKeyboardController::IsISOLevel5ShiftAvailable() const {
42 return false; 42 return false;
43 } 43 }
44 44
45 bool FakeXKeyboard::IsAltGrAvailable() const { 45 bool FakeKeyboardController::IsAltGrAvailable() const {
46 return false; 46 return false;
47 } 47 }
48 48
49 bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) { 49 bool FakeKeyboardController::SetAutoRepeatEnabled(bool enabled) {
50 auto_repeat_is_enabled_ = enabled; 50 auto_repeat_is_enabled_ = enabled;
51 return true; 51 return true;
52 } 52 }
53 53
54 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { 54 bool FakeKeyboardController::SetAutoRepeatRate(const AutoRepeatRate& rate) {
55 last_auto_repeat_rate_ = rate; 55 last_auto_repeat_rate_ = rate;
56 return true; 56 return true;
57 } 57 }
58 58
59 } // namespace input_method 59 } // namespace input_method
60 } // namespace chromeos 60 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698