| Index: chromeos/ime/fake_ime_keyboard.cc
|
| diff --git a/chromeos/ime/fake_ime_keyboard.cc b/chromeos/ime/fake_ime_keyboard.cc
|
| index d4bd0e0bb6f1813e2100042bc02e0bde915e2fd5..ba1d5d5629578c739a76511379aeb53d03a2bbf0 100644
|
| --- a/chromeos/ime/fake_ime_keyboard.cc
|
| +++ b/chromeos/ime/fake_ime_keyboard.cc
|
| @@ -16,61 +16,23 @@ FakeImeKeyboard::FakeImeKeyboard()
|
| FakeImeKeyboard::~FakeImeKeyboard() {
|
| }
|
|
|
| -void FakeImeKeyboard::AddObserver(Observer* observer) {
|
| - observers_.AddObserver(observer);
|
| -}
|
| -
|
| -void FakeImeKeyboard::RemoveObserver(Observer* observer) {
|
| - observers_.RemoveObserver(observer);
|
| -}
|
| -
|
| bool FakeImeKeyboard::SetCurrentKeyboardLayoutByName(
|
| const std::string& layout_name) {
|
| ++set_current_keyboard_layout_by_name_count_;
|
| - last_layout_ = layout_name;
|
| + ImeKeyboard::SetCurrentKeyboardLayoutByName(layout_name);
|
| return true;
|
| }
|
|
|
| -bool FakeImeKeyboard::ReapplyCurrentKeyboardLayout() {
|
| +bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
|
| + last_auto_repeat_rate_ = rate;
|
| return true;
|
| }
|
|
|
| -void FakeImeKeyboard::ReapplyCurrentModifierLockStatus() {
|
| -}
|
| -
|
| -void FakeImeKeyboard::DisableNumLock() {
|
| -}
|
| -
|
| -void FakeImeKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
|
| - bool old_state = caps_lock_is_enabled_;
|
| - caps_lock_is_enabled_ = enable_caps_lock;
|
| - if (old_state != enable_caps_lock) {
|
| - FOR_EACH_OBSERVER(ImeKeyboard::Observer, observers_,
|
| - OnCapsLockChanged(enable_caps_lock));
|
| - }
|
| -}
|
| -
|
| -bool FakeImeKeyboard::CapsLockIsEnabled() {
|
| - return caps_lock_is_enabled_;
|
| -}
|
| -
|
| -bool FakeImeKeyboard::IsISOLevel5ShiftAvailable() const {
|
| - return false;
|
| -}
|
| -
|
| -bool FakeImeKeyboard::IsAltGrAvailable() const {
|
| - return false;
|
| -}
|
| -
|
| bool FakeImeKeyboard::SetAutoRepeatEnabled(bool enabled) {
|
| auto_repeat_is_enabled_ = enabled;
|
| return true;
|
| }
|
|
|
| -bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
|
| - last_auto_repeat_rate_ = rate;
|
| - return true;
|
| -}
|
|
|
| } // namespace input_method
|
| } // namespace chromeos
|
|
|