Chromium Code Reviews| Index: ppapi/api/ppb_text_input_controller.idl |
| diff --git a/ppapi/api/dev/ppb_text_input_dev.idl b/ppapi/api/ppb_text_input_controller.idl |
| similarity index 72% |
| copy from ppapi/api/dev/ppb_text_input_dev.idl |
| copy to ppapi/api/ppb_text_input_controller.idl |
| index 27704b089ec5b28ab939077ff844aba32c183581..0c72d5b4c99aadc228805314bd183df24294ef62 100644 |
| --- a/ppapi/api/dev/ppb_text_input_dev.idl |
| +++ b/ppapi/api/ppb_text_input_controller.idl |
| @@ -4,12 +4,11 @@ |
| */ |
| /** |
| - * This file defines the <code>PPB_TextInput_Dev</code> interface. |
| + * This file defines the <code>PPB_TextInputController</code> interface. |
| */ |
| label Chrome { |
| - M16 = 0.1, |
| - M19 = 0.2 |
| + M30 = 1.0 |
| }; |
| /** |
| @@ -39,11 +38,11 @@ enum PP_TextInput_Type { |
| }; |
| /** |
| - * <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). |
| + * <code>PPB_TextInputController</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 { |
| +interface PPB_TextInputController { |
| /** |
| * Informs the browser about the current text input mode of the plugin. |
| * Typical use of this information in the browser is to properly |
| @@ -55,13 +54,12 @@ interface PPB_TextInput_Dev { |
| [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. |
| + * Informs the browser about the coordinates of the text input caret 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); |
| + [in] PP_Rect caret); |
| /** |
| * Cancels the current composition in IME. |
| @@ -69,8 +67,7 @@ interface PPB_TextInput_Dev { |
| void CancelCompositionText([in] PP_Instance instance); |
| /** |
| - * In response to the <code>PPP_TextInput_Dev::RequestSurroundingText</code> |
| - * call, informs the browser about the current text selection and surrounding |
| + * Informs the browser about the current text selection and surrounding |
| * text. <code>text</code> is a UTF-8 string that contains the current range |
| * of text selection in the plugin. <code>caret</code> is the byte-index of |
| * the caret position within <code>text</code>. <code>anchor</code> is the |
| @@ -91,19 +88,8 @@ interface PPB_TextInput_Dev { |
| * the selection to IME (e.g., when the surrounding text is containing |
| * password text). |
| */ |
| - [version=0.2] |
| void UpdateSurroundingText([in] PP_Instance instance, |
| [in] str_t text, |
|
dmichael (off chromium)
2013/07/25 22:08:14
This should probably be PP_Var to ensure that it i
Seigo Nonaka
2013/07/26 17:40:41
Done.
|
| [in] uint32_t caret, |
| [in] uint32_t anchor); |
| - |
| - /** |
| - * Informs the browser when a range of text selection is changed in a plugin. |
| - * When the browser needs to know the content of the updated selection, it |
| - * pings back by <code>PPP_TextInput_Dev::RequestSurroundingText</code>. The |
| - * plugin then should send the information with |
| - * <code>UpdateSurroundingText</code>. |
| - */ |
| - [version=0.2] |
| - void SelectionChanged([in] PP_Instance instance); |
| }; |