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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 // is not active. | 140 // is not active. |
| 141 virtual bool IsActive() = 0; | 141 virtual bool IsActive() = 0; |
| 142 | 142 |
| 143 // Gets the text input type of the focused text input client. Returns | 143 // Gets the text input type of the focused text input client. Returns |
| 144 // ui::TEXT_INPUT_TYPE_NONE if there is no focused client. | 144 // ui::TEXT_INPUT_TYPE_NONE if there is no focused client. |
| 145 virtual TextInputType GetTextInputType() const = 0; | 145 virtual TextInputType GetTextInputType() const = 0; |
| 146 | 146 |
| 147 // Checks if the focused text input client supports inline composition. | 147 // Checks if the focused text input client supports inline composition. |
| 148 virtual bool CanComposeInline() const = 0; | 148 virtual bool CanComposeInline() const = 0; |
| 149 | 149 |
| 150 // Returns true if a candidate window (or IME suggest, etc.) is open. | |
| 151 // Returns false if no popup window is open or the detection of IME popups | |
| 152 // is not supported. | |
| 153 virtual bool IsPopupOpen() const = 0; | |
|
Seigo Nonaka
2013/06/19 09:15:51
IsPopupOpen seems not clear for me.
How about IsCa
Yuki
2013/06/19 09:35:54
For name, I'd like to support in near future not o
| |
| 154 | |
| 150 // Management of the observer list. | 155 // Management of the observer list. |
| 151 virtual void AddObserver(InputMethodObserver* observer) = 0; | 156 virtual void AddObserver(InputMethodObserver* observer) = 0; |
| 152 virtual void RemoveObserver(InputMethodObserver* observer) = 0; | 157 virtual void RemoveObserver(InputMethodObserver* observer) = 0; |
| 153 }; | 158 }; |
| 154 | 159 |
| 155 } // namespace ui | 160 } // namespace ui |
| 156 | 161 |
| 157 #endif // UI_BASE_IME_INPUT_METHOD_H_ | 162 #endif // UI_BASE_IME_INPUT_METHOD_H_ |
| OLD | NEW |