| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 | 5 |
| 6 /* From dev/ppb_text_input_dev.idl modified Tue Sep 27 14:34:33 2011. */ | 6 /* From dev/ppb_text_input_dev.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_TEXT_INPUT_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_TEXT_INPUT_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_TEXT_INPUT_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_TEXT_INPUT_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_point.h" | 13 #include "ppapi/c/pp_point.h" |
| 14 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
| 15 #include "ppapi/c/pp_size.h" | 15 #include "ppapi/c/pp_size.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * @addtogroup Interfaces | 61 * @addtogroup Interfaces |
| 62 * @{ | 62 * @{ |
| 63 */ | 63 */ |
| 64 /** | 64 /** |
| 65 * <code>PPB_TextInput_Dev</code> provides a set of functions for giving hints | 65 * <code>PPB_TextInput_Dev</code> provides a set of functions for giving hints |
| 66 * to the browser about the text input status of plugins, and functions for | 66 * to the browser about the text input status of plugins, and functions for |
| 67 * controlling input method editors (IMEs). | 67 * controlling input method editors (IMEs). |
| 68 */ | 68 */ |
| 69 struct PPB_TextInput_Dev { | 69 struct PPB_TextInput_Dev_0_1 { |
| 70 /** | 70 /** |
| 71 * Informs the browser about the current text input mode of the plugin. | 71 * Informs the browser about the current text input mode of the plugin. |
| 72 * Typical use of this information in the browser is to properly | 72 * Typical use of this information in the browser is to properly |
| 73 * display/suppress tools for supporting text inputs (such as virtual | 73 * display/suppress tools for supporting text inputs (such as virtual |
| 74 * keyboards in touch screen based devices, or input method editors often | 74 * keyboards in touch screen based devices, or input method editors often |
| 75 * used for composing East Asian characters). | 75 * used for composing East Asian characters). |
| 76 */ | 76 */ |
| 77 void (*SetTextInputType)(PP_Instance instance, PP_TextInput_Type type); | 77 void (*SetTextInputType)(PP_Instance instance, PP_TextInput_Type type); |
| 78 /** | 78 /** |
| 79 * Informs the browser about the coordinates of the text input caret and the | 79 * Informs the browser about the coordinates of the text input caret and the |
| 80 * bounding box of the text input area. Typical use of this information in | 80 * bounding box of the text input area. Typical use of this information in |
| 81 * the browser is to layout IME windows etc. | 81 * the browser is to layout IME windows etc. |
| 82 */ | 82 */ |
| 83 void (*UpdateCaretPosition)(PP_Instance instance, | 83 void (*UpdateCaretPosition)(PP_Instance instance, |
| 84 const struct PP_Rect* caret, | 84 const struct PP_Rect* caret, |
| 85 const struct PP_Rect* bounding_box); | 85 const struct PP_Rect* bounding_box); |
| 86 /** | 86 /** |
| 87 * Cancels the current composition in IME. | 87 * Cancels the current composition in IME. |
| 88 */ | 88 */ |
| 89 void (*CancelCompositionText)(PP_Instance instance); | 89 void (*CancelCompositionText)(PP_Instance instance); |
| 90 }; | 90 }; |
| 91 |
| 92 typedef struct PPB_TextInput_Dev_0_1 PPB_TextInput_Dev; |
| 91 /** | 93 /** |
| 92 * @} | 94 * @} |
| 93 */ | 95 */ |
| 94 | 96 |
| 95 #endif /* PPAPI_C_DEV_PPB_TEXT_INPUT_DEV_H_ */ | 97 #endif /* PPAPI_C_DEV_PPB_TEXT_INPUT_DEV_H_ */ |
| 96 | 98 |
| OLD | NEW |