| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 // can be updated correctly. | 36 // can be updated correctly. |
| 37 virtual void OnFocus() OVERRIDE; | 37 virtual void OnFocus() OVERRIDE; |
| 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 DetachTextInputClient(TextInputClient* client) OVERRIDE; | 40 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; |
| 41 virtual TextInputClient* GetTextInputClient() const OVERRIDE; | 41 virtual TextInputClient* GetTextInputClient() const OVERRIDE; |
| 42 | 42 |
| 43 // If a derived class overrides this method, it should call parent's | 43 // If a derived class overrides this method, it should call parent's |
| 44 // implementation. | 44 // implementation. |
| 45 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 45 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| 46 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | |
| 47 | 46 |
| 48 virtual TextInputType GetTextInputType() const OVERRIDE; | 47 virtual TextInputType GetTextInputType() const OVERRIDE; |
| 49 virtual TextInputMode GetTextInputMode() const OVERRIDE; | 48 virtual TextInputMode GetTextInputMode() const OVERRIDE; |
| 50 virtual bool CanComposeInline() const OVERRIDE; | 49 virtual bool CanComposeInline() const OVERRIDE; |
| 51 | 50 |
| 52 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; | 51 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; |
| 53 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; | 52 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; |
| 54 | 53 |
| 55 protected: | 54 protected: |
| 56 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, | 55 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 ObserverList<InputMethodObserver> observer_list_; | 97 ObserverList<InputMethodObserver> observer_list_; |
| 99 | 98 |
| 100 bool system_toplevel_window_focused_; | 99 bool system_toplevel_window_focused_; |
| 101 | 100 |
| 102 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 101 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } // namespace ui | 104 } // namespace ui |
| 106 | 105 |
| 107 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 106 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| OLD | NEW |