| 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() |
| 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) { |
| 17 } |
| 18 |
| 19 void FakeXKeyboard::RemoveObserver(XKeyboard::Observer* observer) { |
| 20 } |
| 21 |
| 16 bool FakeXKeyboard::SetCurrentKeyboardLayoutByName( | 22 bool FakeXKeyboard::SetCurrentKeyboardLayoutByName( |
| 17 const std::string& layout_name) { | 23 const std::string& layout_name) { |
| 18 ++set_current_keyboard_layout_by_name_count_; | 24 ++set_current_keyboard_layout_by_name_count_; |
| 19 last_layout_ = layout_name; | 25 last_layout_ = layout_name; |
| 20 return true; | 26 return true; |
| 21 } | 27 } |
| 22 | 28 |
| 23 bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() { | 29 bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() { |
| 24 return true; | 30 return true; |
| 25 } | 31 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 51 return true; | 57 return true; |
| 52 } | 58 } |
| 53 | 59 |
| 54 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { | 60 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { |
| 55 last_auto_repeat_rate_ = rate; | 61 last_auto_repeat_rate_ = rate; |
| 56 return true; | 62 return true; |
| 57 } | 63 } |
| 58 | 64 |
| 59 } // namespace input_method | 65 } // namespace input_method |
| 60 } // namespace chromeos | 66 } // namespace chromeos |
| OLD | NEW |