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

Unified Diff: ui/views/ime/null_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/views/ime/mock_input_method.cc ('k') | ui/views/ime/null_input_method.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/ime/null_input_method.h
diff --git a/ui/views/ime/null_input_method.h b/ui/views/ime/null_input_method.h
deleted file mode 100644
index 29142e6d8bdca573a4cbdacb250537d432a20eb6..0000000000000000000000000000000000000000
--- a/ui/views/ime/null_input_method.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 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_VIEWS_IME_NULL_INPUT_METHOD_H_
-#define UI_VIEWS_IME_NULL_INPUT_METHOD_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "ui/views/ime/input_method.h"
-
-namespace views {
-
-// An implementation of views::InputMethod which does nothing.
-//
-// We're working on removing views::InputMethod{,Base,Bridge} and going to use
-// only ui::InputMethod. Use this class instead of views::InputMethodBridge
-// with ui::TextInputFocusManager to effectively eliminate the
-// views::InputMethod layer.
-class NullInputMethod : public InputMethod {
- public:
- NullInputMethod();
-
- // Overridden from InputMethod:
- virtual void SetDelegate(internal::InputMethodDelegate* delegate) override;
- virtual void Init(Widget* widget) override;
- virtual void OnFocus() override;
- virtual void OnBlur() override;
- virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
- NativeEventResult* result) override;
- virtual void DispatchKeyEvent(const ui::KeyEvent& key) override;
- virtual void OnTextInputTypeChanged(View* view) override;
- virtual void OnCaretBoundsChanged(View* view) override;
- virtual void CancelComposition(View* view) override;
- virtual void OnInputLocaleChanged() override;
- virtual std::string GetInputLocale() override;
- virtual bool IsActive() override;
- virtual ui::TextInputClient* GetTextInputClient() const override;
- virtual ui::TextInputType GetTextInputType() const override;
- virtual bool IsCandidatePopupOpen() const override;
- virtual void ShowImeIfNeeded() override;
- virtual bool IsMock() const override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(NullInputMethod);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_IME_NULL_INPUT_METHOD_H_
« no previous file with comments | « ui/views/ime/mock_input_method.cc ('k') | ui/views/ime/null_input_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698