Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: ui/base/ime/chromeos/mock_input_method_manager.cc

Issue 2605843002: Add MockInputMethodManager under ui/base/ime/chromeos/ (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/ime/chromeos/mock_input_method_manager.cc
diff --git a/ui/base/ime/chromeos/mock_input_method_manager.cc b/ui/base/ime/chromeos/mock_input_method_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3e3db692ce90ac84c4e22c45e6262d7f359b13d5
--- /dev/null
+++ b/ui/base/ime/chromeos/mock_input_method_manager.cc
@@ -0,0 +1,104 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/ime/chromeos/mock_input_method_manager.h"
+
+#include <utility>
+
+namespace chromeos {
+namespace input_method {
+
+MockInputMethodManager::MockInputMethodManager() {}
+
+MockInputMethodManager::~MockInputMethodManager() {}
+
+InputMethodManager::UISessionState MockInputMethodManager::GetUISessionState() {
+ return InputMethodManager::STATE_BROWSER_SCREEN;
+}
+
+void MockInputMethodManager::AddObserver(
+ InputMethodManager::Observer* observer) {}
+
+void MockInputMethodManager::AddCandidateWindowObserver(
+ InputMethodManager::CandidateWindowObserver* observer) {}
+
+void MockInputMethodManager::AddImeMenuObserver(
+ InputMethodManager::ImeMenuObserver* observer) {}
+
+void MockInputMethodManager::RemoveObserver(
+ InputMethodManager::Observer* observer) {}
+
+void MockInputMethodManager::RemoveCandidateWindowObserver(
+ InputMethodManager::CandidateWindowObserver* observer) {}
+
+void MockInputMethodManager::RemoveImeMenuObserver(
+ InputMethodManager::ImeMenuObserver* observer) {}
+
+std::unique_ptr<InputMethodDescriptors>
+MockInputMethodManager::GetSupportedInputMethods() const {
+ return nullptr;
+}
+
+void MockInputMethodManager::ActivateInputMethodMenuItem(
+ const std::string& key) {}
+
+bool MockInputMethodManager::IsISOLevel5ShiftUsedByCurrentInputMethod() const {
+ return false;
+}
+
+bool MockInputMethodManager::IsAltGrUsedByCurrentInputMethod() const {
+ return false;
+}
+
+ImeKeyboard* MockInputMethodManager::GetImeKeyboard() {
+ return nullptr;
+}
+
+InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() {
+ return nullptr;
+}
+
+ComponentExtensionIMEManager*
+MockInputMethodManager::GetComponentExtensionIMEManager() {
+ return nullptr;
+}
+
+bool MockInputMethodManager::IsLoginKeyboard(const std::string& layout) const {
+ return true;
+}
+
+bool MockInputMethodManager::MigrateInputMethods(
+ std::vector<std::string>* input_method_ids) {
+ return false;
+}
+scoped_refptr<InputMethodManager::State> MockInputMethodManager::CreateNewState(
+ Profile* profile) {
+ return nullptr;
+}
+
+scoped_refptr<InputMethodManager::State>
+MockInputMethodManager::GetActiveIMEState() {
+ return nullptr;
+}
+
+void MockInputMethodManager::SetState(
+ scoped_refptr<InputMethodManager::State> state) {}
+
+void MockInputMethodManager::ImeMenuActivationChanged(bool is_active) {}
+
+void MockInputMethodManager::NotifyImeMenuItemsChanged(
+ const std::string& engine_id,
+ const std::vector<InputMethodManager::MenuItem>& items) {}
+
+void MockInputMethodManager::MaybeNotifyImeMenuActivationChanged() {}
+
+void MockInputMethodManager::OverrideKeyboardUrlRef(const std::string& keyset) {
+}
+
+bool MockInputMethodManager::IsEmojiHandwritingVoiceOnImeMenuEnabled() {
+ return true;
+}
+
+} // namespace input_method
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698