Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / base / ime / dummy_input_method.h
blobedad7b8ff5054f75b59ce454b3080c50d2aa2f83
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 Init(bool focused) override;
22 void OnFocus() override;
23 void OnBlur() override;
24 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
25 NativeEventResult* result) override;
26 void SetFocusedTextInputClient(TextInputClient* client) override;
27 void DetachTextInputClient(TextInputClient* client) override;
28 TextInputClient* GetTextInputClient() const override;
29 bool DispatchKeyEvent(const ui::KeyEvent& event) override;
30 void OnTextInputTypeChanged(const TextInputClient* client) override;
31 void OnCaretBoundsChanged(const TextInputClient* client) override;
32 void CancelComposition(const TextInputClient* client) override;
33 void OnInputLocaleChanged() override;
34 std::string GetInputLocale() override;
35 bool IsActive() override;
36 TextInputType GetTextInputType() const override;
37 TextInputMode GetTextInputMode() const override;
38 int GetTextInputFlags() const override;
39 bool CanComposeInline() const override;
40 bool IsCandidatePopupOpen() const override;
41 void ShowImeIfNeeded() override;
43 void AddObserver(InputMethodObserver* observer) override;
44 void RemoveObserver(InputMethodObserver* observer) override;
46 private:
47 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod);
50 } // namespace ui
52 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_