| 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 "ui/base/ime/chromeos/mock_input_method_manager.h" | 5 #include "ui/base/ime/chromeos/mock_input_method_manager.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 namespace chromeos { | 9 namespace chromeos { |
| 10 namespace input_method { | 10 namespace input_method { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const { | 85 const { |
| 86 InputMethodDescriptor descriptor; | 86 InputMethodDescriptor descriptor; |
| 87 return descriptor; | 87 return descriptor; |
| 88 } | 88 } |
| 89 | 89 |
| 90 bool MockInputMethodManager::State::ReplaceEnabledInputMethods( | 90 bool MockInputMethodManager::State::ReplaceEnabledInputMethods( |
| 91 const std::vector<std::string>& new_active_input_method_ids) { | 91 const std::vector<std::string>& new_active_input_method_ids) { |
| 92 return true; | 92 return true; |
| 93 } | 93 } |
| 94 | 94 |
| 95 bool MockInputMethodManager::State::SetAllowedKeyboardLayoutInputMethods( |
| 96 const std::vector<std::string>& new_allowed_input_method_ids) { |
| 97 allowed_keyboard_layout_input_method_ids = new_allowed_input_method_ids; |
| 98 return true; |
| 99 } |
| 100 |
| 101 const std::vector<std::string>& |
| 102 MockInputMethodManager::State::GetAllowedKeyboardLayoutInputMethods() { |
| 103 return allowed_keyboard_layout_input_method_ids; |
| 104 } |
| 105 |
| 95 MockInputMethodManager::State::~State() {} | 106 MockInputMethodManager::State::~State() {} |
| 96 | 107 |
| 97 MockInputMethodManager::MockInputMethodManager() {} | 108 MockInputMethodManager::MockInputMethodManager() {} |
| 98 | 109 |
| 99 MockInputMethodManager::~MockInputMethodManager() {} | 110 MockInputMethodManager::~MockInputMethodManager() {} |
| 100 | 111 |
| 101 InputMethodManager::UISessionState MockInputMethodManager::GetUISessionState() { | 112 InputMethodManager::UISessionState MockInputMethodManager::GetUISessionState() { |
| 102 return InputMethodManager::STATE_BROWSER_SCREEN; | 113 return InputMethodManager::STATE_BROWSER_SCREEN; |
| 103 } | 114 } |
| 104 | 115 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 191 |
| 181 void MockInputMethodManager::OverrideKeyboardUrlRef(const std::string& keyset) { | 192 void MockInputMethodManager::OverrideKeyboardUrlRef(const std::string& keyset) { |
| 182 } | 193 } |
| 183 | 194 |
| 184 bool MockInputMethodManager::IsEmojiHandwritingVoiceOnImeMenuEnabled() { | 195 bool MockInputMethodManager::IsEmojiHandwritingVoiceOnImeMenuEnabled() { |
| 185 return true; | 196 return true; |
| 186 } | 197 } |
| 187 | 198 |
| 188 } // namespace input_method | 199 } // namespace input_method |
| 189 } // namespace chromeos | 200 } // namespace chromeos |
| OLD | NEW |