| 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_ime_input_event_dev.idl modified Wed Sep 21 12:31:56 2011. */ | 6 /* From dev/ppb_ime_input_event_dev.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
| 16 | 16 |
| 17 #define PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_1 "PPB_IMEInputEvent(Dev);0.1" | 17 #define PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_1 "PPB_IMEInputEvent(Dev);0.1" |
| 18 #define PPB_IME_INPUT_EVENT_DEV_INTERFACE PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_1 | 18 #define PPB_IME_INPUT_EVENT_DEV_INTERFACE PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_1 |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * @file | 21 * @file |
| 22 * This file defines the <code>PPB_IMEInputEvent_Dev</code> interface. | 22 * This file defines the <code>PPB_IMEInputEvent_Dev</code> interface. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * @addtogroup Interfaces | 27 * @addtogroup Interfaces |
| 28 * @{ | 28 * @{ |
| 29 */ | 29 */ |
| 30 struct PPB_IMEInputEvent_Dev { | 30 struct PPB_IMEInputEvent_Dev_0_1 { |
| 31 /** | 31 /** |
| 32 * IsIMEInputEvent() determines if a resource is an IME event. | 32 * IsIMEInputEvent() determines if a resource is an IME event. |
| 33 * | 33 * |
| 34 * @param[in] resource A <code>PP_Resource</code> corresponding to an event. | 34 * @param[in] resource A <code>PP_Resource</code> corresponding to an event. |
| 35 * | 35 * |
| 36 * @return <code>PP_TRUE</code> if the given resource is a valid input event. | 36 * @return <code>PP_TRUE</code> if the given resource is a valid input event. |
| 37 */ | 37 */ |
| 38 PP_Bool (*IsIMEInputEvent)(PP_Resource resource); | 38 PP_Bool (*IsIMEInputEvent)(PP_Resource resource); |
| 39 /** | 39 /** |
| 40 * GetText() returns the composition text as a UTF-8 string for the given IME | 40 * GetText() returns the composition text as a UTF-8 string for the given IME |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 * | 93 * |
| 94 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME | 94 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME |
| 95 * event. | 95 * event. |
| 96 * | 96 * |
| 97 * @param[out] start The start position of the current selection. | 97 * @param[out] start The start position of the current selection. |
| 98 * | 98 * |
| 99 * @param[out] end The end position of the current selection. | 99 * @param[out] end The end position of the current selection. |
| 100 */ | 100 */ |
| 101 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); | 101 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); |
| 102 }; | 102 }; |
| 103 |
| 104 typedef struct PPB_IMEInputEvent_Dev_0_1 PPB_IMEInputEvent_Dev; |
| 103 /** | 105 /** |
| 104 * @} | 106 * @} |
| 105 */ | 107 */ |
| 106 | 108 |
| 107 #endif /* PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ */ | 109 #endif /* PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ */ |
| 108 | 110 |
| OLD | NEW |