| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 bool MockInputMethodManager::EnableInputMethod( | 85 bool MockInputMethodManager::EnableInputMethod( |
| 86 const std::string& new_active_input_method_id) { | 86 const std::string& new_active_input_method_id) { |
| 87 return true; | 87 return true; |
| 88 } | 88 } |
| 89 | 89 |
| 90 void MockInputMethodManager::ChangeInputMethod( | 90 void MockInputMethodManager::ChangeInputMethod( |
| 91 const std::string& input_method_id) { | 91 const std::string& input_method_id) { |
| 92 } | 92 } |
| 93 | 93 |
| 94 void MockInputMethodManager::ActivateInputMethodMenuItem( | 94 void MockInputMethodManager::ActivateInputMethodProperty( |
| 95 const std::string& key) { | 95 const std::string& key) { |
| 96 } | 96 } |
| 97 | 97 |
| 98 void MockInputMethodManager::AddInputMethodExtension( | 98 void MockInputMethodManager::AddInputMethodExtension( |
| 99 const std::string& id, | 99 const std::string& id, |
| 100 InputMethodEngineInterface* instance) { | 100 InputMethodEngineInterface* instance) { |
| 101 } | 101 } |
| 102 | 102 |
| 103 void MockInputMethodManager::RemoveInputMethodExtension(const std::string& id) { | 103 void MockInputMethodManager::RemoveInputMethodExtension(const std::string& id) { |
| 104 } | 104 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 descriptor.indicator(), | 137 descriptor.indicator(), |
| 138 descriptor.keyboard_layouts(), | 138 descriptor.keyboard_layouts(), |
| 139 descriptor.language_codes(), | 139 descriptor.language_codes(), |
| 140 true, | 140 true, |
| 141 GURL(), // options page url. | 141 GURL(), // options page url. |
| 142 GURL()); // input view page url. | 142 GURL()); // input view page url. |
| 143 } | 143 } |
| 144 return descriptor; | 144 return descriptor; |
| 145 } | 145 } |
| 146 | 146 |
| 147 InputMethodPropertyList |
| 148 MockInputMethodManager::GetCurrentInputMethodProperties() const { |
| 149 return InputMethodPropertyList(); |
| 150 } |
| 151 |
| 152 void MockInputMethodManager::SetCurrentInputMethodProperties( |
| 153 const InputMethodPropertyList& property_list) { |
| 154 } |
| 155 |
| 147 XKeyboard* MockInputMethodManager::GetXKeyboard() { | 156 XKeyboard* MockInputMethodManager::GetXKeyboard() { |
| 148 return &xkeyboard_; | 157 return &xkeyboard_; |
| 149 } | 158 } |
| 150 | 159 |
| 151 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() { | 160 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() { |
| 152 return &util_; | 161 return &util_; |
| 153 } | 162 } |
| 154 | 163 |
| 155 ComponentExtensionIMEManager* | 164 ComponentExtensionIMEManager* |
| 156 MockInputMethodManager::GetComponentExtensionIMEManager() { | 165 MockInputMethodManager::GetComponentExtensionIMEManager() { |
| 157 return NULL; | 166 return NULL; |
| 158 } | 167 } |
| 159 | 168 |
| 160 void MockInputMethodManager::set_application_locale(const std::string& value) { | 169 void MockInputMethodManager::set_application_locale(const std::string& value) { |
| 161 delegate_.set_active_locale(value); | 170 delegate_.set_active_locale(value); |
| 162 } | 171 } |
| 163 | 172 |
| 164 void MockInputMethodManager::set_hardware_keyboard_layout( | 173 void MockInputMethodManager::set_hardware_keyboard_layout( |
| 165 const std::string& value) { | 174 const std::string& value) { |
| 166 delegate_.set_hardware_keyboard_layout(value); | 175 delegate_.set_hardware_keyboard_layout(value); |
| 167 } | 176 } |
| 168 | 177 |
| 169 bool MockInputMethodManager::IsLoginKeyboard( | 178 bool MockInputMethodManager::IsLoginKeyboard( |
| 170 const std::string& layout) const { | 179 const std::string& layout) const { |
| 171 return true; | 180 return true; |
| 172 } | 181 } |
| 173 } // namespace input_method | 182 } // namespace input_method |
| 174 } // namespace chromeos | 183 } // namespace chromeos |
| OLD | NEW |