| OLD | NEW |
| 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_xkeyboard.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 namespace input_method { | 8 namespace input_method { |
| 9 | 9 |
| 10 FakeXKeyboard::FakeXKeyboard() | 10 FakeXKeyboard::FakeXKeyboard() |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 void FakeXKeyboard::SetCapsLockEnabled(bool enable_caps_lock) { | 33 void FakeXKeyboard::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 FakeXKeyboard::CapsLockIsEnabled() { |
| 38 return caps_lock_is_enabled_; | 38 return caps_lock_is_enabled_; |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool FakeXKeyboard::IsISOLevel5ShiftAvailable() const { |
| 42 return false; |
| 43 } |
| 44 |
| 45 bool FakeXKeyboard::IsAltGrAvailable() const { |
| 46 return false; |
| 47 } |
| 48 |
| 41 bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) { | 49 bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) { |
| 42 auto_repeat_is_enabled_ = enabled; | 50 auto_repeat_is_enabled_ = enabled; |
| 43 return true; | 51 return true; |
| 44 } | 52 } |
| 45 | 53 |
| 46 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { | 54 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { |
| 47 last_auto_repeat_rate_ = rate; | 55 last_auto_repeat_rate_ = rate; |
| 48 return true; | 56 return true; |
| 49 } | 57 } |
| 50 | 58 |
| 51 } // namespace input_method | 59 } // namespace input_method |
| 52 } // namespace chromeos | 60 } // namespace chromeos |
| OLD | NEW |