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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 return true; | 113 return true; |
114 } | 114 } |
115 | 115 |
116 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { | 116 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { |
117 InputMethodDescriptor descriptor = | 117 InputMethodDescriptor descriptor = |
118 InputMethodDescriptor::GetFallbackInputMethodDescriptor(); | 118 InputMethodDescriptor::GetFallbackInputMethodDescriptor(); |
119 if (!current_input_method_id_.empty()) { | 119 if (!current_input_method_id_.empty()) { |
120 return InputMethodDescriptor(current_input_method_id_, | 120 return InputMethodDescriptor(current_input_method_id_, |
121 descriptor.name(), | 121 descriptor.name(), |
122 descriptor.keyboard_layout(), | 122 descriptor.keyboard_layout(), |
123 descriptor.language_code()); | 123 descriptor.language_code(), |
| 124 false); |
124 } | 125 } |
125 return descriptor; | 126 return descriptor; |
126 } | 127 } |
127 | 128 |
128 InputMethodPropertyList | 129 InputMethodPropertyList |
129 MockInputMethodManager::GetCurrentInputMethodProperties() const { | 130 MockInputMethodManager::GetCurrentInputMethodProperties() const { |
130 return InputMethodPropertyList(); | 131 return InputMethodPropertyList(); |
131 } | 132 } |
132 | 133 |
133 XKeyboard* MockInputMethodManager::GetXKeyboard() { | 134 XKeyboard* MockInputMethodManager::GetXKeyboard() { |
134 return &xkeyboard_; | 135 return &xkeyboard_; |
135 } | 136 } |
136 | 137 |
137 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() { | 138 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() { |
138 return &util_; | 139 return &util_; |
139 } | 140 } |
140 | 141 |
141 } // namespace input_method | 142 } // namespace input_method |
142 } // namespace chromeos | 143 } // namespace chromeos |
OLD | NEW |