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_input_method_manager.h" | 5 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
6 | 6 |
7 namespace chromeos { | 7 namespace chromeos { |
8 namespace input_method { | 8 namespace input_method { |
9 | 9 |
| 10 MockInputMethodManager::State::State() { |
| 11 } |
| 12 |
| 13 MockInputMethodManager::State::~State() { |
| 14 } |
| 15 |
10 MockInputMethodManager::MockInputMethodManager() | 16 MockInputMethodManager::MockInputMethodManager() |
11 : add_observer_count_(0), | 17 : add_observer_count_(0), |
12 remove_observer_count_(0), | 18 remove_observer_count_(0), |
13 util_(&delegate_), | 19 util_(&delegate_), |
14 mod3_used_(false) { | 20 mod3_used_(false) { |
15 active_input_method_ids_.push_back("xkb:us::eng"); | 21 active_input_method_ids_.push_back("xkb:us::eng"); |
16 } | 22 } |
17 | 23 |
18 MockInputMethodManager::~MockInputMethodManager() { | 24 MockInputMethodManager::~MockInputMethodManager() { |
19 } | 25 } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 bool MockInputMethodManager::IsLoginKeyboard( | 191 bool MockInputMethodManager::IsLoginKeyboard( |
186 const std::string& layout) const { | 192 const std::string& layout) const { |
187 return true; | 193 return true; |
188 } | 194 } |
189 | 195 |
190 bool MockInputMethodManager::MigrateInputMethods( | 196 bool MockInputMethodManager::MigrateInputMethods( |
191 std::vector<std::string>* input_method_ids) { | 197 std::vector<std::string>* input_method_ids) { |
192 return false; | 198 return false; |
193 } | 199 } |
194 | 200 |
| 201 scoped_refptr<InputMethodManager::State> MockInputMethodManager::CreateNewState( |
| 202 const std::string& debug_name) const { |
| 203 return new State(); |
| 204 } |
| 205 |
| 206 void MockInputMethodManager::SetState( |
| 207 scoped_refptr<InputMethodManager::State> state) { |
| 208 } |
| 209 |
195 } // namespace input_method | 210 } // namespace input_method |
196 } // namespace chromeos | 211 } // namespace chromeos |
OLD | NEW |