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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } | 128 } |
129 | 129 |
130 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { | 130 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { |
131 InputMethodDescriptor descriptor = | 131 InputMethodDescriptor descriptor = |
132 InputMethodUtil::GetFallbackInputMethodDescriptor(); | 132 InputMethodUtil::GetFallbackInputMethodDescriptor(); |
133 if (!current_input_method_id_.empty()) { | 133 if (!current_input_method_id_.empty()) { |
134 return InputMethodDescriptor(current_input_method_id_, | 134 return InputMethodDescriptor(current_input_method_id_, |
135 descriptor.name(), | 135 descriptor.name(), |
136 descriptor.keyboard_layouts(), | 136 descriptor.keyboard_layouts(), |
137 descriptor.language_codes(), | 137 descriptor.language_codes(), |
| 138 true, |
138 GURL()); // options page url. | 139 GURL()); // options page url. |
139 } | 140 } |
140 return descriptor; | 141 return descriptor; |
141 } | 142 } |
142 | 143 |
143 InputMethodPropertyList | 144 InputMethodPropertyList |
144 MockInputMethodManager::GetCurrentInputMethodProperties() const { | 145 MockInputMethodManager::GetCurrentInputMethodProperties() const { |
145 return InputMethodPropertyList(); | 146 return InputMethodPropertyList(); |
146 } | 147 } |
147 | 148 |
(...skipping 12 matching lines...) Expand all Loading... |
160 | 161 |
161 void MockInputMethodManager::set_application_locale(const std::string& value) { | 162 void MockInputMethodManager::set_application_locale(const std::string& value) { |
162 delegate_.set_active_locale(value); | 163 delegate_.set_active_locale(value); |
163 } | 164 } |
164 | 165 |
165 void MockInputMethodManager::set_hardware_keyboard_layout( | 166 void MockInputMethodManager::set_hardware_keyboard_layout( |
166 const std::string& value) { | 167 const std::string& value) { |
167 delegate_.set_hardware_keyboard_layout(value); | 168 delegate_.set_hardware_keyboard_layout(value); |
168 } | 169 } |
169 | 170 |
170 bool MockInputMethodManager::IsFullLatinKeyboard( | 171 bool MockInputMethodManager::IsLoginKeyboard( |
171 const std::string& layout) const { | 172 const std::string& layout) const { |
172 return true; | 173 return true; |
173 } | 174 } |
174 } // namespace input_method | 175 } // namespace input_method |
175 } // namespace chromeos | 176 } // namespace chromeos |
OLD | NEW |