| 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::MockInputMethodManager() | 10 MockInputMethodManager::MockInputMethodManager() |
| 11 : add_observer_count_(0), | 11 : add_observer_count_(0), |
| 12 remove_observer_count_(0), | 12 remove_observer_count_(0), |
| 13 util_(&delegate_, whitelist_.GetSupportedInputMethods()), | 13 util_(&delegate_), |
| 14 mod3_used_(false) { | 14 mod3_used_(false) { |
| 15 active_input_method_ids_.push_back("xkb:us::eng"); | 15 active_input_method_ids_.push_back("xkb:us::eng"); |
| 16 } | 16 } |
| 17 | 17 |
| 18 MockInputMethodManager::~MockInputMethodManager() { | 18 MockInputMethodManager::~MockInputMethodManager() { |
| 19 } | 19 } |
| 20 | 20 |
| 21 void MockInputMethodManager::InitializeComponentExtension() { |
| 22 } |
| 23 |
| 21 void MockInputMethodManager::AddObserver( | 24 void MockInputMethodManager::AddObserver( |
| 22 InputMethodManager::Observer* observer) { | 25 InputMethodManager::Observer* observer) { |
| 23 ++add_observer_count_; | 26 ++add_observer_count_; |
| 24 } | 27 } |
| 25 | 28 |
| 26 void MockInputMethodManager::AddCandidateWindowObserver( | 29 void MockInputMethodManager::AddCandidateWindowObserver( |
| 27 InputMethodManager::CandidateWindowObserver* observer) { | 30 InputMethodManager::CandidateWindowObserver* observer) { |
| 28 } | 31 } |
| 29 | 32 |
| 30 void MockInputMethodManager::RemoveObserver( | 33 void MockInputMethodManager::RemoveObserver( |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 return true; | 185 return true; |
| 183 } | 186 } |
| 184 | 187 |
| 185 bool MockInputMethodManager::MigrateInputMethods( | 188 bool MockInputMethodManager::MigrateInputMethods( |
| 186 std::vector<std::string>* input_method_ids) { | 189 std::vector<std::string>* input_method_ids) { |
| 187 return false; | 190 return false; |
| 188 } | 191 } |
| 189 | 192 |
| 190 } // namespace input_method | 193 } // namespace input_method |
| 191 } // namespace chromeos | 194 } // namespace chromeos |
| OLD | NEW |