Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 * Use of this source code is governed by a BSD-style license that can be | |
| 3 * found in the LICENSE file. | |
| 4 */ | |
| 5 | |
| 6 /** | |
| 7 * This file defines the <code>PPB_TextInput_Dev</code> interface. | |
| 8 */ | |
| 9 | |
| 10 label Chrome { | |
| 11 M16 = 0.1 | |
| 12 }; | |
| 13 | |
| 14 /** | |
| 15 * PP_TextInput_Type is used to indicate the status of a plugin in regard to | |
| 16 * text input. | |
| 17 */ | |
| 18 [assert_size(4)] | |
| 19 enum PP_TextInput_Type { | |
| 20 /** | |
| 21 * Input caret is not in an editable mode, no input method shall be used. | |
| 22 */ | |
| 23 PP_TEXTINPUT_TYPE_NONE = 0, | |
| 24 /** | |
| 25 * Input caret is in a normal editable mode, any input method can be used. | |
| 26 */ | |
| 27 PP_TEXTINPUT_TYPE_TEXT = 1, | |
| 28 /** | |
| 29 * Input caret is in a password box, an input method may be used only if | |
| 30 * it's suitable for password input. | |
| 31 */ | |
| 32 PP_TEXTINPUT_TYPE_PASSWORD = 2, | |
| 33 PP_TEXTINPUT_TYPE_SEARCH = 3, | |
| 34 PP_TEXTINPUT_TYPE_EMAIL = 4, | |
| 35 PP_TEXTINPUT_TYPE_NUMBER = 5, | |
| 36 PP_TEXTINPUT_TYPE_TELEPHONE = 6, | |
| 37 PP_TEXTINPUT_TYPE_URL = 7 | |
| 38 }; | |
| 39 | |
| 40 /** | |
| 41 * <code>PPB_TextInput_Dev</code> provides a set of functions for giving hints | |
| 42 * to the browser about the text input status of plugins, and functions for | |
| 43 * controlling input method editors (IMEs). | |
| 44 */ | |
| 45 interface PPB_TextInput_Dev { | |
|
brettw
2011/09/14 23:00:06
Looks like you didn't regenerate this from the idl
kinaba
2011/09/15 08:53:50
I'm sorry I didn't get the point. This is the late
| |
| 46 /** | |
| 47 * Informs the browser about the current text input mode of the plugin. | |
| 48 * Typical use of this information in the browser is to properly | |
| 49 * display/suppress tools for supporting text inputs (such as virtual | |
| 50 * keyboards in touch screen based devices, or input method editors often | |
| 51 * used for composing East Asian characters). | |
| 52 */ | |
| 53 void SetTextInputType([in] PP_Instance instance, | |
| 54 [in] PP_TextInput_Type type); | |
| 55 | |
| 56 /** | |
| 57 * Informs the browser about the coordinates of the text input caret and the | |
| 58 * bounding box of the text input area. Typical use of this information in | |
| 59 * the browser is to layout IME windows etc. | |
| 60 */ | |
| 61 void UpdateCaretPosition([in] PP_Instance instance, | |
| 62 [in] PP_Rect caret, | |
| 63 [in] PP_Rect bounding_box); | |
| 64 /** | |
| 65 * Forces to commit the current composition text in IME. | |
| 66 */ | |
| 67 void ConfirmCompositionText([in] PP_Instance instance); | |
| 68 | |
| 69 /** | |
| 70 * Cancels the current composition in IME. | |
| 71 */ | |
| 72 void CancelCompositionText([in] PP_Instance instance); | |
| 73 }; | |
| OLD | NEW |