Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / base / ime / dummy_input_method.h
blob470151a956058154d55b79220f94b4bcb8dab470
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 TextInputType GetTextInputType() const override;
35 TextInputMode GetTextInputMode() const override;
36 int GetTextInputFlags() const override;
37 bool CanComposeInline() const override;
38 bool IsCandidatePopupOpen() const override;
39 void ShowImeIfNeeded() override;
41 void AddObserver(InputMethodObserver* observer) override;
42 void RemoveObserver(InputMethodObserver* observer) override;
44 private:
45 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod);
48 } // namespace ui
50 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_