OLD | NEW |
| (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 | |
OLD | NEW |