OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_IME_DUMMY_INPUT_METHOD_H_ | 5 #ifndef UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
6 #define UI_BASE_IME_DUMMY_INPUT_METHOD_H_ | 6 #define UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
7 | 7 |
8 #include "ui/base/ime/input_method.h" | 8 #include "ui/base/ime/input_method.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 class InputMethodObserver; | 12 class InputMethodObserver; |
13 | 13 |
14 class DummyInputMethod : public InputMethod { | 14 class DummyInputMethod : public InputMethod { |
15 public: | 15 public: |
16 DummyInputMethod(); | 16 DummyInputMethod(); |
17 virtual ~DummyInputMethod(); | 17 virtual ~DummyInputMethod(); |
18 | 18 |
19 // InputMethod overrides: | 19 // InputMethod overrides: |
20 virtual void SetDelegate( | 20 virtual void SetDelegate( |
21 internal::InputMethodDelegate* delegate) OVERRIDE; | 21 internal::InputMethodDelegate* delegate) override; |
22 virtual void Init(bool focused) OVERRIDE; | 22 virtual void Init(bool focused) override; |
23 virtual void OnFocus() OVERRIDE; | 23 virtual void OnFocus() override; |
24 virtual void OnBlur() OVERRIDE; | 24 virtual void OnBlur() override; |
25 virtual bool OnUntranslatedIMEMessage( | 25 virtual bool OnUntranslatedIMEMessage( |
26 const base::NativeEvent& event, NativeEventResult* result) OVERRIDE; | 26 const base::NativeEvent& event, NativeEventResult* result) override; |
27 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; | 27 virtual void SetFocusedTextInputClient(TextInputClient* client) override; |
28 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; | 28 virtual void DetachTextInputClient(TextInputClient* client) override; |
29 virtual TextInputClient* GetTextInputClient() const OVERRIDE; | 29 virtual TextInputClient* GetTextInputClient() const override; |
30 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) OVERRIDE; | 30 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) override; |
31 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 31 virtual void OnTextInputTypeChanged(const TextInputClient* client) override; |
32 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 32 virtual void OnCaretBoundsChanged(const TextInputClient* client) override; |
33 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 33 virtual void CancelComposition(const TextInputClient* client) override; |
34 virtual void OnInputLocaleChanged() OVERRIDE; | 34 virtual void OnInputLocaleChanged() override; |
35 virtual std::string GetInputLocale() OVERRIDE; | 35 virtual std::string GetInputLocale() override; |
36 virtual bool IsActive() OVERRIDE; | 36 virtual bool IsActive() override; |
37 virtual TextInputType GetTextInputType() const OVERRIDE; | 37 virtual TextInputType GetTextInputType() const override; |
38 virtual TextInputMode GetTextInputMode() const OVERRIDE; | 38 virtual TextInputMode GetTextInputMode() const override; |
39 virtual bool CanComposeInline() const OVERRIDE; | 39 virtual bool CanComposeInline() const override; |
40 virtual bool IsCandidatePopupOpen() const OVERRIDE; | 40 virtual bool IsCandidatePopupOpen() const override; |
41 virtual void ShowImeIfNeeded() OVERRIDE; | 41 virtual void ShowImeIfNeeded() override; |
42 | 42 |
43 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; | 43 virtual void AddObserver(InputMethodObserver* observer) override; |
44 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; | 44 virtual void RemoveObserver(InputMethodObserver* observer) override; |
45 | 45 |
46 private: | 46 private: |
47 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod); | 47 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace ui | 50 } // namespace ui |
51 | 51 |
52 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_ | 52 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
OLD | NEW |