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

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

Issue 48393003: Add InputMethodObserver support into InputMethodBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix -Werror=sign-compare Created 7 years, 1 month 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 | « no previous file | ui/base/ime/input_method_base.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_INPUT_METHOD_BASE_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_BASE_H_
6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 27 matching lines...) Expand all
38 virtual void OnBlur() OVERRIDE; 38 virtual void OnBlur() OVERRIDE;
39 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; 39 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE;
40 virtual void SetStickyFocusedTextInputClient( 40 virtual void SetStickyFocusedTextInputClient(
41 TextInputClient* client) OVERRIDE; 41 TextInputClient* client) OVERRIDE;
42 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; 42 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE;
43 virtual TextInputClient* GetTextInputClient() const OVERRIDE; 43 virtual TextInputClient* GetTextInputClient() const OVERRIDE;
44 44
45 // If a derived class overrides this method, it should call parent's 45 // If a derived class overrides this method, it should call parent's
46 // implementation. 46 // implementation.
47 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; 47 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE;
48 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE;
49 virtual void OnInputLocaleChanged() OVERRIDE;
48 50
49 virtual TextInputType GetTextInputType() const OVERRIDE; 51 virtual TextInputType GetTextInputType() const OVERRIDE;
50 virtual TextInputMode GetTextInputMode() const OVERRIDE; 52 virtual TextInputMode GetTextInputMode() const OVERRIDE;
51 virtual bool CanComposeInline() const OVERRIDE; 53 virtual bool CanComposeInline() const OVERRIDE;
52 54
53 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; 55 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE;
54 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; 56 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE;
55 57
56 protected: 58 protected:
57 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, 59 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ObserverList<InputMethodObserver> observer_list_; 101 ObserverList<InputMethodObserver> observer_list_;
100 102
101 bool system_toplevel_window_focused_; 103 bool system_toplevel_window_focused_;
102 104
103 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); 105 DISALLOW_COPY_AND_ASSIGN(InputMethodBase);
104 }; 106 };
105 107
106 } // namespace ui 108 } // namespace ui
107 109
108 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ 110 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698