| 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_VIEWS_IME_INPUT_METHOD_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_H_ |
| 6 #define UI_VIEWS_IME_INPUT_METHOD_H_ | 6 #define UI_VIEWS_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual bool IsActive() = 0; | 106 virtual bool IsActive() = 0; |
| 107 | 107 |
| 108 // Returns the focused text input client, or NULL if the Widget is not active, | 108 // Returns the focused text input client, or NULL if the Widget is not active, |
| 109 // has no focused View, or if the focused View does not support text input. | 109 // has no focused View, or if the focused View does not support text input. |
| 110 virtual ui::TextInputClient* GetTextInputClient() const = 0; | 110 virtual ui::TextInputClient* GetTextInputClient() const = 0; |
| 111 | 111 |
| 112 // Gets the text input type of the focused text input client. Returns | 112 // Gets the text input type of the focused text input client. Returns |
| 113 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client. | 113 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client. |
| 114 virtual ui::TextInputType GetTextInputType() const = 0; | 114 virtual ui::TextInputType GetTextInputType() const = 0; |
| 115 | 115 |
| 116 // Returns true if we know for sure that a candidate window (or IME suggest, |
| 117 // etc.) is open. Returns false if no popup window is open or the detection |
| 118 // of IME popups is not supported. |
| 119 virtual bool IsCandidatePopupOpen() const = 0; |
| 120 |
| 116 // Returns true if the input method is a mock instance used for testing. | 121 // Returns true if the input method is a mock instance used for testing. |
| 117 virtual bool IsMock() const = 0; | 122 virtual bool IsMock() const = 0; |
| 118 | 123 |
| 119 // TODO(suzhe): Support mouse/touch event. | 124 // TODO(suzhe): Support mouse/touch event. |
| 120 }; | 125 }; |
| 121 | 126 |
| 122 } // namespace views | 127 } // namespace views |
| 123 | 128 |
| 124 #endif // UI_VIEWS_IME_INPUT_METHOD_H_ | 129 #endif // UI_VIEWS_IME_INPUT_METHOD_H_ |
| OLD | NEW |