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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // Gets the text input type of the focused text input client. Returns | 108 // Gets the text input type of the focused text input client. Returns |
109 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client. | 109 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client. |
110 virtual ui::TextInputType GetTextInputType() const = 0; | 110 virtual ui::TextInputType GetTextInputType() const = 0; |
111 | 111 |
112 // Returns true if we know for sure that a candidate window (or IME suggest, | 112 // Returns true if we know for sure that a candidate window (or IME suggest, |
113 // etc.) is open. Returns false if no popup window is open or the detection | 113 // etc.) is open. Returns false if no popup window is open or the detection |
114 // of IME popups is not supported. | 114 // of IME popups is not supported. |
115 virtual bool IsCandidatePopupOpen() const = 0; | 115 virtual bool IsCandidatePopupOpen() const = 0; |
116 | 116 |
| 117 // Displays an on screen keyboard if enabled. |
| 118 virtual void ShowImeIfNeeded() = 0; |
| 119 |
117 // Returns true if the input method is a mock instance used for testing. | 120 // Returns true if the input method is a mock instance used for testing. |
118 virtual bool IsMock() const = 0; | 121 virtual bool IsMock() const = 0; |
119 | 122 |
120 // TODO(suzhe): Support mouse/touch event. | 123 // TODO(suzhe): Support mouse/touch event. |
121 }; | 124 }; |
122 | 125 |
123 } // namespace views | 126 } // namespace views |
124 | 127 |
125 #endif // UI_VIEWS_IME_INPUT_METHOD_H_ | 128 #endif // UI_VIEWS_IME_INPUT_METHOD_H_ |
OLD | NEW |