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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 | 112 |
113 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { | 113 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { |
114 InputMethodDescriptor descriptor = | 114 InputMethodDescriptor descriptor = |
115 InputMethodUtil::GetFallbackInputMethodDescriptor(); | 115 InputMethodUtil::GetFallbackInputMethodDescriptor(); |
116 if (!current_input_method_id_.empty()) { | 116 if (!current_input_method_id_.empty()) { |
117 return InputMethodDescriptor(current_input_method_id_, | 117 return InputMethodDescriptor(current_input_method_id_, |
118 descriptor.name(), | 118 descriptor.name(), |
119 descriptor.keyboard_layout(), | 119 descriptor.keyboard_layout(), |
120 descriptor.language_code(), | 120 descriptor.language_code(), |
121 "", // options page url. | 121 ""); // options page url. |
122 false); | |
123 } | 122 } |
124 return descriptor; | 123 return descriptor; |
125 } | 124 } |
126 | 125 |
127 InputMethodPropertyList | 126 InputMethodPropertyList |
128 MockInputMethodManager::GetCurrentInputMethodProperties() const { | 127 MockInputMethodManager::GetCurrentInputMethodProperties() const { |
129 return InputMethodPropertyList(); | 128 return InputMethodPropertyList(); |
130 } | 129 } |
131 | 130 |
132 XKeyboard* MockInputMethodManager::GetXKeyboard() { | 131 XKeyboard* MockInputMethodManager::GetXKeyboard() { |
(...skipping 13 matching lines...) Expand all Loading... |
146 delegate_.set_active_locale(value); | 145 delegate_.set_active_locale(value); |
147 } | 146 } |
148 | 147 |
149 void MockInputMethodManager::set_hardware_keyboard_layout( | 148 void MockInputMethodManager::set_hardware_keyboard_layout( |
150 const std::string& value) { | 149 const std::string& value) { |
151 delegate_.set_hardware_keyboard_layout(value); | 150 delegate_.set_hardware_keyboard_layout(value); |
152 } | 151 } |
153 | 152 |
154 } // namespace input_method | 153 } // namespace input_method |
155 } // namespace chromeos | 154 } // namespace chromeos |
OLD | NEW |