| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/input_method/mock_xkeyboard.h" | 5 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 namespace input_method { | 8 namespace input_method { |
| 9 | 9 |
| 10 MockXKeyboard::MockXKeyboard() | 10 MockXKeyboard::MockXKeyboard() |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 unsigned int MockXKeyboard::GetNumLockMask() { | 56 unsigned int MockXKeyboard::GetNumLockMask() { |
| 57 return 1; | 57 return 1; |
| 58 } | 58 } |
| 59 | 59 |
| 60 void MockXKeyboard::GetLockedModifiers(bool* out_caps_lock_enabled, | 60 void MockXKeyboard::GetLockedModifiers(bool* out_caps_lock_enabled, |
| 61 bool* out_num_lock_enabled) { | 61 bool* out_num_lock_enabled) { |
| 62 *out_caps_lock_enabled = caps_lock_is_enabled_; | 62 *out_caps_lock_enabled = caps_lock_is_enabled_; |
| 63 *out_num_lock_enabled = num_lock_is_enabled_; | 63 *out_num_lock_enabled = num_lock_is_enabled_; |
| 64 } | 64 } |
| 65 | 65 |
| 66 bool MockXKeyboard::SetAutoRepeatEnabled(bool enabled) { | |
| 67 auto_repeat_enabled_ = enabled; | |
| 68 return true; | |
| 69 } | |
| 70 | |
| 71 bool MockXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { | |
| 72 auto_repeat_rate_ = rate; | |
| 73 return true; | |
| 74 } | |
| 75 | |
| 76 } // namespace input_method | 66 } // namespace input_method |
| 77 } // namespace chromeos | 67 } // namespace chromeos |
| OLD | NEW |