Chromium Code Reviews| Index: ppapi/api/dev/ppb_text_input_dev.idl | 
| diff --git a/ppapi/api/dev/ppb_text_input_dev.idl b/ppapi/api/dev/ppb_text_input_dev.idl | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..f534b65a92b083bd03ff26249e3171d2405df4cf | 
| --- /dev/null | 
| +++ b/ppapi/api/dev/ppb_text_input_dev.idl | 
| @@ -0,0 +1,73 @@ | 
| +/* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
| + * Use of this source code is governed by a BSD-style license that can be | 
| + * found in the LICENSE file. | 
| + */ | 
| + | 
| +/** | 
| + * This file defines the <code>PPB_TextInput_Dev</code> interface. | 
| + */ | 
| + | 
| +label Chrome { | 
| + M16 = 0.1 | 
| +}; | 
| + | 
| +/** | 
| + * PP_TextInput_Type is used to indicate the status of a plugin in regard to | 
| + * text input. | 
| + */ | 
| +[assert_size(4)] | 
| +enum PP_TextInput_Type { | 
| + /** | 
| + * Input caret is not in an editable mode, no input method shall be used. | 
| + */ | 
| + PP_TEXTINPUT_TYPE_NONE = 0, | 
| + /** | 
| + * Input caret is in a normal editable mode, any input method can be used. | 
| + */ | 
| + PP_TEXTINPUT_TYPE_TEXT = 1, | 
| + /** | 
| + * Input caret is in a password box, an input method may be used only if | 
| + * it's suitable for password input. | 
| + */ | 
| + PP_TEXTINPUT_TYPE_PASSWORD = 2, | 
| + PP_TEXTINPUT_TYPE_SEARCH = 3, | 
| + PP_TEXTINPUT_TYPE_EMAIL = 4, | 
| + PP_TEXTINPUT_TYPE_NUMBER = 5, | 
| + PP_TEXTINPUT_TYPE_TELEPHONE = 6, | 
| + PP_TEXTINPUT_TYPE_URL = 7 | 
| +}; | 
| + | 
| +/** | 
| + * <code>PPB_TextInput_Dev</code> provides a set of functions for giving hints | 
| + * to the browser about the text input status of plugins, and functions for | 
| + * controlling input method editors (IMEs). | 
| + */ | 
| +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
 
 | 
| + /** | 
| + * Informs the browser about the current text input mode of the plugin. | 
| + * Typical use of this information in the browser is to properly | 
| + * display/suppress tools for supporting text inputs (such as virtual | 
| + * keyboards in touch screen based devices, or input method editors often | 
| + * used for composing East Asian characters). | 
| + */ | 
| + void SetTextInputType([in] PP_Instance instance, | 
| + [in] PP_TextInput_Type type); | 
| + | 
| + /** | 
| + * Informs the browser about the coordinates of the text input caret and the | 
| + * bounding box of the text input area. Typical use of this information in | 
| + * the browser is to layout IME windows etc. | 
| + */ | 
| + void UpdateCaretPosition([in] PP_Instance instance, | 
| + [in] PP_Rect caret, | 
| + [in] PP_Rect bounding_box); | 
| + /** | 
| + * Forces to commit the current composition text in IME. | 
| + */ | 
| + void ConfirmCompositionText([in] PP_Instance instance); | 
| + | 
| + /** | 
| + * Cancels the current composition in IME. | 
| + */ | 
| + void CancelCompositionText([in] PP_Instance instance); | 
| +}; |