| 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // If a derived class overrides this method, it should call parent's | 46 // If a derived class overrides this method, it should call parent's |
| 47 // implementation. | 47 // implementation. |
| 48 void OnTextInputTypeChanged(const TextInputClient* client) override; | 48 void OnTextInputTypeChanged(const TextInputClient* client) override; |
| 49 | 49 |
| 50 TextInputType GetTextInputType() const override; | 50 TextInputType GetTextInputType() const override; |
| 51 TextInputMode GetTextInputMode() const override; | 51 TextInputMode GetTextInputMode() const override; |
| 52 int GetTextInputFlags() const override; | 52 int GetTextInputFlags() const override; |
| 53 bool CanComposeInline() const override; | 53 bool CanComposeInline() const override; |
| 54 void ShowImeIfNeeded() override; | 54 void ShowImeIfNeeded() override; |
| 55 void SetSupportsOnScreenKeyboard(bool supported) override; |
| 56 bool SupportsOnScreenKeyboard() const override; |
| 55 | 57 |
| 56 void AddObserver(InputMethodObserver* observer) override; | 58 void AddObserver(InputMethodObserver* observer) override; |
| 57 void RemoveObserver(InputMethodObserver* observer) override; | 59 void RemoveObserver(InputMethodObserver* observer) override; |
| 58 | 60 |
| 59 protected: | 61 protected: |
| 60 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, | 62 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, |
| 61 TextInputClient* focused) {} | 63 TextInputClient* focused) {} |
| 62 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, | 64 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, |
| 63 TextInputClient* focused) {} | 65 TextInputClient* focused) {} |
| 64 | 66 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void CandidateWindowShownCallback(); | 108 void CandidateWindowShownCallback(); |
| 107 void CandidateWindowUpdatedCallback(); | 109 void CandidateWindowUpdatedCallback(); |
| 108 void CandidateWindowHiddenCallback(); | 110 void CandidateWindowHiddenCallback(); |
| 109 | 111 |
| 110 internal::InputMethodDelegate* delegate_; | 112 internal::InputMethodDelegate* delegate_; |
| 111 TextInputClient* text_input_client_; | 113 TextInputClient* text_input_client_; |
| 112 | 114 |
| 113 ObserverList<InputMethodObserver> observer_list_; | 115 ObserverList<InputMethodObserver> observer_list_; |
| 114 | 116 |
| 115 bool system_toplevel_window_focused_; | 117 bool system_toplevel_window_focused_; |
| 118 bool on_screen_keyboard_supported_; |
| 116 | 119 |
| 117 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 120 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 } // namespace ui | 123 } // namespace ui |
| 121 | 124 |
| 122 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 125 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| OLD | NEW |