| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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/ppp_text_input_dev.idl modified Tue Mar 13 20:19:19 2012. */ | 6 /* From dev/ppp_text_input_dev.idl modified Thu Mar 28 10:55:30 2013. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_ | 9 #define PPAPI_C_DEV_PPP_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_stdint.h" | 13 #include "ppapi/c/pp_stdint.h" |
| 14 | 14 |
| 15 #define PPP_TEXTINPUT_DEV_INTERFACE_0_1 "PPP_TextInput(Dev);0.1" | 15 #define PPP_TEXTINPUT_DEV_INTERFACE_0_1 "PPP_TextInput(Dev);0.1" |
| 16 #define PPP_TEXTINPUT_DEV_INTERFACE PPP_TEXTINPUT_DEV_INTERFACE_0_1 | 16 #define PPP_TEXTINPUT_DEV_INTERFACE PPP_TEXTINPUT_DEV_INTERFACE_0_1 |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * @file | 19 * @file |
| 20 * This file defines the <code>PPP_TextInput_Dev</code> interface. | 20 * This file defines the <code>PPP_TextInput_Dev</code> interface. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @addtogroup Interfaces | 25 * @addtogroup Interfaces |
| 26 * @{ | 26 * @{ |
| 27 */ | 27 */ |
| 28 /** | 28 /** |
| 29 * <code>PPP_TextInput_Dev</code> is a set of function pointers that the | 29 * <code>PPP_TextInput_Dev</code> is a set of function pointers that the |
| 30 * plugin has to implement to provide hints for text input system (IME). | 30 * plugin has to implement to provide hints for text input system (IME). |
| 31 */ | 31 */ |
| 32 struct PPP_TextInput_Dev_0_1 { | 32 struct PPP_TextInput_Dev_0_1 { |
| 33 /** | 33 /** |
| 34 * Requests the plugin to send back the text arround the current caret or | 34 * Requests the plugin to send back the text around the current caret or |
| 35 * selection by <code>PPB_TextInput_Dev::UpdateSurroundingText</code>. | 35 * selection by <code>PPB_TextInput_Dev::UpdateSurroundingText</code>. |
| 36 * It is recommended to include the <code>desired_number_of_characters</code> | 36 * It is recommended to include the <code>desired_number_of_characters</code> |
| 37 * characters before and after the selection, but not mandatory. | 37 * characters before and after the selection, but not mandatory. |
| 38 */ | 38 */ |
| 39 void (*RequestSurroundingText)(PP_Instance instance, | 39 void (*RequestSurroundingText)(PP_Instance instance, |
| 40 uint32_t desired_number_of_characters); | 40 uint32_t desired_number_of_characters); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 typedef struct PPP_TextInput_Dev_0_1 PPP_TextInput_Dev; | 43 typedef struct PPP_TextInput_Dev_0_1 PPP_TextInput_Dev; |
| 44 /** | 44 /** |
| 45 * @} | 45 * @} |
| 46 */ | 46 */ |
| 47 | 47 |
| 48 #endif /* PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_ */ | 48 #endif /* PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_ */ |
| 49 | 49 |
| OLD | NEW |