OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/base/ime/chromeos/mock_input_method_manager.h" |
| 6 |
| 7 #include <utility> |
| 8 |
| 9 namespace chromeos { |
| 10 namespace input_method { |
| 11 |
| 12 MockInputMethodManager::MockInputMethodManager() {} |
| 13 |
| 14 MockInputMethodManager::~MockInputMethodManager() {} |
| 15 |
| 16 InputMethodManager::UISessionState MockInputMethodManager::GetUISessionState() { |
| 17 return InputMethodManager::STATE_BROWSER_SCREEN; |
| 18 } |
| 19 |
| 20 void MockInputMethodManager::AddObserver( |
| 21 InputMethodManager::Observer* observer) {} |
| 22 |
| 23 void MockInputMethodManager::AddCandidateWindowObserver( |
| 24 InputMethodManager::CandidateWindowObserver* observer) {} |
| 25 |
| 26 void MockInputMethodManager::AddImeMenuObserver( |
| 27 InputMethodManager::ImeMenuObserver* observer) {} |
| 28 |
| 29 void MockInputMethodManager::RemoveObserver( |
| 30 InputMethodManager::Observer* observer) {} |
| 31 |
| 32 void MockInputMethodManager::RemoveCandidateWindowObserver( |
| 33 InputMethodManager::CandidateWindowObserver* observer) {} |
| 34 |
| 35 void MockInputMethodManager::RemoveImeMenuObserver( |
| 36 InputMethodManager::ImeMenuObserver* observer) {} |
| 37 |
| 38 std::unique_ptr<InputMethodDescriptors> |
| 39 MockInputMethodManager::GetSupportedInputMethods() const { |
| 40 return nullptr; |
| 41 } |
| 42 |
| 43 void MockInputMethodManager::ActivateInputMethodMenuItem( |
| 44 const std::string& key) {} |
| 45 |
| 46 bool MockInputMethodManager::IsISOLevel5ShiftUsedByCurrentInputMethod() const { |
| 47 return false; |
| 48 } |
| 49 |
| 50 bool MockInputMethodManager::IsAltGrUsedByCurrentInputMethod() const { |
| 51 return false; |
| 52 } |
| 53 |
| 54 ImeKeyboard* MockInputMethodManager::GetImeKeyboard() { |
| 55 return nullptr; |
| 56 } |
| 57 |
| 58 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() { |
| 59 return nullptr; |
| 60 } |
| 61 |
| 62 ComponentExtensionIMEManager* |
| 63 MockInputMethodManager::GetComponentExtensionIMEManager() { |
| 64 return nullptr; |
| 65 } |
| 66 |
| 67 bool MockInputMethodManager::IsLoginKeyboard(const std::string& layout) const { |
| 68 return true; |
| 69 } |
| 70 |
| 71 bool MockInputMethodManager::MigrateInputMethods( |
| 72 std::vector<std::string>* input_method_ids) { |
| 73 return false; |
| 74 } |
| 75 scoped_refptr<InputMethodManager::State> MockInputMethodManager::CreateNewState( |
| 76 Profile* profile) { |
| 77 return nullptr; |
| 78 } |
| 79 |
| 80 scoped_refptr<InputMethodManager::State> |
| 81 MockInputMethodManager::GetActiveIMEState() { |
| 82 return nullptr; |
| 83 } |
| 84 |
| 85 void MockInputMethodManager::SetState( |
| 86 scoped_refptr<InputMethodManager::State> state) {} |
| 87 |
| 88 void MockInputMethodManager::ImeMenuActivationChanged(bool is_active) {} |
| 89 |
| 90 void MockInputMethodManager::NotifyImeMenuItemsChanged( |
| 91 const std::string& engine_id, |
| 92 const std::vector<InputMethodManager::MenuItem>& items) {} |
| 93 |
| 94 void MockInputMethodManager::MaybeNotifyImeMenuActivationChanged() {} |
| 95 |
| 96 void MockInputMethodManager::OverrideKeyboardUrlRef(const std::string& keyset) { |
| 97 } |
| 98 |
| 99 bool MockInputMethodManager::IsEmojiHandwritingVoiceOnImeMenuEnabled() { |
| 100 return true; |
| 101 } |
| 102 |
| 103 } // namespace input_method |
| 104 } // namespace chromeos |
OLD | NEW |