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

Side by Side Diff: ui/base/ime/dummy_input_method.h

Issue 1257603006: Refactoring for the InputMethod & InputMethodDelegate interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Sadrul's comment. Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/base/ime/dummy_input_method.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ~DummyInputMethod() override; 17 ~DummyInputMethod() override;
18 18
19 // InputMethod overrides: 19 // InputMethod overrides:
20 void SetDelegate(internal::InputMethodDelegate* delegate) override; 20 void SetDelegate(internal::InputMethodDelegate* delegate) override;
21 void OnFocus() override; 21 void OnFocus() override;
22 void OnBlur() override; 22 void OnBlur() override;
23 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 23 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
24 NativeEventResult* result) override; 24 NativeEventResult* result) override;
25 void SetFocusedTextInputClient(TextInputClient* client) override; 25 void SetFocusedTextInputClient(TextInputClient* client) override;
26 void DetachTextInputClient(TextInputClient* client) override; 26 void DetachTextInputClient(TextInputClient* client) override;
27 TextInputClient* GetTextInputClient() const override; 27 TextInputClient* GetTextInputClient() const override;
28 bool DispatchKeyEvent(const ui::KeyEvent& event) override; 28 void DispatchKeyEvent(ui::KeyEvent* event) override;
29 void OnTextInputTypeChanged(const TextInputClient* client) override; 29 void OnTextInputTypeChanged(const TextInputClient* client) override;
30 void OnCaretBoundsChanged(const TextInputClient* client) override; 30 void OnCaretBoundsChanged(const TextInputClient* client) override;
31 void CancelComposition(const TextInputClient* client) override; 31 void CancelComposition(const TextInputClient* client) override;
32 void OnInputLocaleChanged() override; 32 void OnInputLocaleChanged() override;
33 std::string GetInputLocale() override; 33 std::string GetInputLocale() override;
34 TextInputType GetTextInputType() const override; 34 TextInputType GetTextInputType() const override;
35 TextInputMode GetTextInputMode() const override; 35 TextInputMode GetTextInputMode() const override;
36 int GetTextInputFlags() const override; 36 int GetTextInputFlags() const override;
37 bool CanComposeInline() const override; 37 bool CanComposeInline() const override;
38 bool IsCandidatePopupOpen() const override; 38 bool IsCandidatePopupOpen() const override;
39 void ShowImeIfNeeded() override; 39 void ShowImeIfNeeded() override;
40 40
41 void AddObserver(InputMethodObserver* observer) override; 41 void AddObserver(InputMethodObserver* observer) override;
42 void RemoveObserver(InputMethodObserver* observer) override; 42 void RemoveObserver(InputMethodObserver* observer) override;
43 43
44 private: 44 private:
45 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod); 45 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod);
46 }; 46 };
47 47
48 } // namespace ui 48 } // namespace ui
49 49
50 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_ 50 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/base/ime/dummy_input_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698