Revert of Fix missing GN dependencies. (patchset #4 id:60001 of https://codereview...
[chromium-blink-merge.git] / ui / base / ime / dummy_input_method.h
blob7635b353e13926b0442455109f37007e3fec62a7
1 // Copyright 2013 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.
5 #ifndef UI_BASE_IME_DUMMY_INPUT_METHOD_H_
6 #define UI_BASE_IME_DUMMY_INPUT_METHOD_H_
8 #include "ui/base/ime/input_method.h"
10 namespace ui {
12 class InputMethodObserver;
14 class DummyInputMethod : public InputMethod {
15 public:
16 DummyInputMethod();
17 ~DummyInputMethod() override;
19 // InputMethod overrides:
20 void SetDelegate(internal::InputMethodDelegate* delegate) override;
21 void OnFocus() override;
22 void OnBlur() override;
23 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
24 NativeEventResult* result) override;
25 void SetFocusedTextInputClient(TextInputClient* client) override;
26 void DetachTextInputClient(TextInputClient* client) override;
27 TextInputClient* GetTextInputClient() const override;
28 bool DispatchKeyEvent(const ui::KeyEvent& event) override;
29 void OnTextInputTypeChanged(const TextInputClient* client) override;
30 void OnCaretBoundsChanged(const TextInputClient* client) override;
31 void CancelComposition(const TextInputClient* client) override;
32 void OnInputLocaleChanged() override;
33 std::string GetInputLocale() override;
34 bool IsActive() override;
35 TextInputType GetTextInputType() const override;
36 TextInputMode GetTextInputMode() const override;
37 int GetTextInputFlags() const override;
38 bool CanComposeInline() const override;
39 bool IsCandidatePopupOpen() const override;
40 void ShowImeIfNeeded() override;
42 void AddObserver(InputMethodObserver* observer) override;
43 void RemoveObserver(InputMethodObserver* observer) override;
45 private:
46 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod);
49 } // namespace ui
51 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_