Chromium Code Reviews| 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_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 virtual bool CanComposeInline() const = 0; | 154 virtual bool CanComposeInline() const = 0; |
| 155 | 155 |
| 156 // Returns true if we know for sure that a candidate window (or IME suggest, | 156 // Returns true if we know for sure that a candidate window (or IME suggest, |
| 157 // etc.) is open. Returns false if no popup window is open or the detection | 157 // etc.) is open. Returns false if no popup window is open or the detection |
| 158 // of IME popups is not supported. | 158 // of IME popups is not supported. |
| 159 virtual bool IsCandidatePopupOpen() const = 0; | 159 virtual bool IsCandidatePopupOpen() const = 0; |
| 160 | 160 |
| 161 // Displays an on screen keyboard if enabled. | 161 // Displays an on screen keyboard if enabled. |
| 162 virtual void ShowImeIfNeeded() = 0; | 162 virtual void ShowImeIfNeeded() = 0; |
| 163 | 163 |
| 164 // Sets whether the on screen keyboard is enabled and supported by the | |
| 165 // platform. | |
| 166 virtual void SetSupportsOnScreenKeyboard(bool supported) = 0; | |
|
yukawa
2014/12/24 03:09:49
I'm still unsure why we need setter for this prope
| |
| 167 | |
| 168 // Returns true if on screen keyboard is enabled and supported by the | |
| 169 // platform. | |
| 170 virtual bool SupportsOnScreenKeyboard() const = 0; | |
|
yukawa
2014/12/24 03:09:49
Related to the above comment, if the return value
| |
| 171 | |
| 164 // Management of the observer list. | 172 // Management of the observer list. |
| 165 virtual void AddObserver(InputMethodObserver* observer) = 0; | 173 virtual void AddObserver(InputMethodObserver* observer) = 0; |
| 166 virtual void RemoveObserver(InputMethodObserver* observer) = 0; | 174 virtual void RemoveObserver(InputMethodObserver* observer) = 0; |
| 167 }; | 175 }; |
| 168 | 176 |
| 169 } // namespace ui | 177 } // namespace ui |
| 170 | 178 |
| 171 #endif // UI_BASE_IME_INPUT_METHOD_H_ | 179 #endif // UI_BASE_IME_INPUT_METHOD_H_ |
| OLD | NEW |