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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 const ui::Accelerator& accelerator) { | 109 const ui::Accelerator& accelerator) { |
110 return true; | 110 return true; |
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_layouts(), |
120 descriptor.language_code(), | 120 descriptor.language_code(), |
121 ""); // options page url. | 121 ""); // options page url. |
122 } | 122 } |
123 return descriptor; | 123 return descriptor; |
124 } | 124 } |
125 | 125 |
126 InputMethodPropertyList | 126 InputMethodPropertyList |
127 MockInputMethodManager::GetCurrentInputMethodProperties() const { | 127 MockInputMethodManager::GetCurrentInputMethodProperties() const { |
128 return InputMethodPropertyList(); | 128 return InputMethodPropertyList(); |
129 } | 129 } |
(...skipping 15 matching lines...) Expand all Loading... |
145 delegate_.set_active_locale(value); | 145 delegate_.set_active_locale(value); |
146 } | 146 } |
147 | 147 |
148 void MockInputMethodManager::set_hardware_keyboard_layout( | 148 void MockInputMethodManager::set_hardware_keyboard_layout( |
149 const std::string& value) { | 149 const std::string& value) { |
150 delegate_.set_hardware_keyboard_layout(value); | 150 delegate_.set_hardware_keyboard_layout(value); |
151 } | 151 } |
152 | 152 |
153 } // namespace input_method | 153 } // namespace input_method |
154 } // namespace chromeos | 154 } // namespace chromeos |
OLD | NEW |