| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 135 } |
| 136 | 136 |
| 137 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { | 137 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { |
| 138 InputMethodDescriptor descriptor = | 138 InputMethodDescriptor descriptor = |
| 139 InputMethodUtil::GetFallbackInputMethodDescriptor(); | 139 InputMethodUtil::GetFallbackInputMethodDescriptor(); |
| 140 if (!current_input_method_id_.empty()) { | 140 if (!current_input_method_id_.empty()) { |
| 141 return InputMethodDescriptor(current_input_method_id_, | 141 return InputMethodDescriptor(current_input_method_id_, |
| 142 descriptor.name(), | 142 descriptor.name(), |
| 143 descriptor.keyboard_layouts(), | 143 descriptor.keyboard_layouts(), |
| 144 descriptor.language_codes(), | 144 descriptor.language_codes(), |
| 145 true, |
| 145 GURL()); // options page url. | 146 GURL()); // options page url. |
| 146 } | 147 } |
| 147 return descriptor; | 148 return descriptor; |
| 148 } | 149 } |
| 149 | 150 |
| 150 InputMethodPropertyList | 151 InputMethodPropertyList |
| 151 MockInputMethodManager::GetCurrentInputMethodProperties() const { | 152 MockInputMethodManager::GetCurrentInputMethodProperties() const { |
| 152 return InputMethodPropertyList(); | 153 return InputMethodPropertyList(); |
| 153 } | 154 } |
| 154 | 155 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 167 | 168 |
| 168 void MockInputMethodManager::set_application_locale(const std::string& value) { | 169 void MockInputMethodManager::set_application_locale(const std::string& value) { |
| 169 delegate_.set_active_locale(value); | 170 delegate_.set_active_locale(value); |
| 170 } | 171 } |
| 171 | 172 |
| 172 void MockInputMethodManager::set_hardware_keyboard_layout( | 173 void MockInputMethodManager::set_hardware_keyboard_layout( |
| 173 const std::string& value) { | 174 const std::string& value) { |
| 174 delegate_.set_hardware_keyboard_layout(value); | 175 delegate_.set_hardware_keyboard_layout(value); |
| 175 } | 176 } |
| 176 | 177 |
| 177 bool MockInputMethodManager::IsFullLatinKeyboard( | 178 bool MockInputMethodManager::IsLoginKeyboard( |
| 178 const std::string& layout) const { | 179 const std::string& layout) const { |
| 179 return true; | 180 return true; |
| 180 } | 181 } |
| 181 } // namespace input_method | 182 } // namespace input_method |
| 182 } // namespace chromeos | 183 } // namespace chromeos |
| OLD | NEW |