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 70% |
copy from ppapi/api/dev/ppb_text_input_dev.idl |
copy to ppapi/api/ppb_text_input_controller.idl |
index 27704b089ec5b28ab939077ff844aba32c183581..294a8013467878bd26cd6f81ada579c4b9bcd285 100644 |
--- a/ppapi/api/dev/ppb_text_input_dev.idl |
+++ b/ppapi/api/ppb_text_input_controller.idl |
@@ -1,15 +1,14 @@ |
-/* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+/* Copyright (c) 2013 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. |
+ * 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, |
+ [in] PP_Var text, |
[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); |
}; |