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

Unified Diff: ui/base/ime/mock_input_method.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months 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
« no previous file with comments | « ui/base/ime/linux/linux_input_method_context_factory.cc ('k') | ui/base/ime/mock_input_method.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/mock_input_method.h
diff --git a/ui/base/ime/mock_input_method.h b/ui/base/ime/mock_input_method.h
deleted file mode 100644
index 67a2029bbfeaeee3f271bf563d4fc8e9b902d181..0000000000000000000000000000000000000000
--- a/ui/base/ime/mock_input_method.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef UI_BASE_IME_MOCK_INPUT_METHOD_H_
-#define UI_BASE_IME_MOCK_INPUT_METHOD_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/observer_list.h"
-#include "ui/base/ime/input_method.h"
-#include "ui/base/ime/input_method_observer.h"
-#include "ui/base/ui_base_export.h"
-
-namespace ui {
-
-class KeyEvent;
-class TextInputClient;
-
-// A mock ui::InputMethod implementation for testing. You can get the instance
-// of this class as the global input method with calling
-// SetUpInputMethodFactoryForTesting() which is declared in
-// ui/base/ime/input_method_factory.h
-class UI_BASE_EXPORT MockInputMethod : NON_EXPORTED_BASE(public InputMethod) {
- public:
- explicit MockInputMethod(internal::InputMethodDelegate* delegate);
- ~MockInputMethod() override;
-
- // Overriden from InputMethod.
- void SetDelegate(internal::InputMethodDelegate* delegate) override;
- void Init(bool focused) override;
- void OnFocus() override;
- void OnBlur() override;
- bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
- NativeEventResult* result) override;
- void SetFocusedTextInputClient(TextInputClient* client) override;
- void DetachTextInputClient(TextInputClient* client) override;
- TextInputClient* GetTextInputClient() const override;
- bool DispatchKeyEvent(const ui::KeyEvent& event) override;
- void OnTextInputTypeChanged(const TextInputClient* client) override;
- void OnCaretBoundsChanged(const TextInputClient* client) override;
- void CancelComposition(const TextInputClient* client) override;
- void OnInputLocaleChanged() override;
- std::string GetInputLocale() override;
- bool IsActive() override;
- TextInputType GetTextInputType() const override;
- TextInputMode GetTextInputMode() const override;
- bool CanComposeInline() const override;
- bool IsCandidatePopupOpen() const override;
- void ShowImeIfNeeded() override;
- void AddObserver(InputMethodObserver* observer) override;
- void RemoveObserver(InputMethodObserver* observer) override;
-
- private:
- TextInputClient* text_input_client_;
- ObserverList<InputMethodObserver> observer_list_;
-
- DISALLOW_COPY_AND_ASSIGN(MockInputMethod);
-};
-
-} // namespace ui
-
-#endif // UI_BASE_IME_MOCK_INPUT_METHOD_H_
« no previous file with comments | « ui/base/ime/linux/linux_input_method_context_factory.cc ('k') | ui/base/ime/mock_input_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698