| 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() |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 static const InputMethodDescriptor defaultInputMethod = | 65 static const InputMethodDescriptor defaultInputMethod = |
| 66 InputMethodUtil::GetFallbackInputMethodDescriptor(); | 66 InputMethodUtil::GetFallbackInputMethodDescriptor(); |
| 67 for (size_t i = 0; i < active_input_method_ids_.size(); i++) { | 67 for (size_t i = 0; i < active_input_method_ids_.size(); i++) { |
| 68 if (input_method_id == active_input_method_ids_[i]) { | 68 if (input_method_id == active_input_method_ids_[i]) { |
| 69 return &defaultInputMethod; | 69 return &defaultInputMethod; |
| 70 } | 70 } |
| 71 } | 71 } |
| 72 return NULL; | 72 return NULL; |
| 73 } | 73 } |
| 74 | 74 |
| 75 void MockInputMethodManager::EnableLayouts(const std::string& language_code, | 75 void MockInputMethodManager::EnableLoginLayouts( |
| 76 const std::string& initial_layout) { | 76 const std::string& language_code, |
| 77 const std::string& initial_layout) { |
| 77 } | 78 } |
| 78 | 79 |
| 79 bool MockInputMethodManager::EnableInputMethods( | 80 bool MockInputMethodManager::EnableInputMethods( |
| 80 const std::vector<std::string>& new_active_input_method_ids) { | 81 const std::vector<std::string>& new_active_input_method_ids) { |
| 81 return true; | 82 return true; |
| 82 } | 83 } |
| 83 | 84 |
| 84 bool MockInputMethodManager::EnableInputMethod( | 85 bool MockInputMethodManager::EnableInputMethod( |
| 85 const std::string& new_active_input_method_id) { | 86 const std::string& new_active_input_method_id) { |
| 86 return true; | 87 return true; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 const std::string& value) { | 173 const std::string& value) { |
| 173 delegate_.set_hardware_keyboard_layout(value); | 174 delegate_.set_hardware_keyboard_layout(value); |
| 174 } | 175 } |
| 175 | 176 |
| 176 bool MockInputMethodManager::IsLoginKeyboard( | 177 bool MockInputMethodManager::IsLoginKeyboard( |
| 177 const std::string& layout) const { | 178 const std::string& layout) const { |
| 178 return true; | 179 return true; |
| 179 } | 180 } |
| 180 } // namespace input_method | 181 } // namespace input_method |
| 181 } // namespace chromeos | 182 } // namespace chromeos |
| OLD | NEW |