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/ppb_ime_input_event_dev.idl modified Wed May 16 17:08:03 2012. */ | 6 /* From ppb_ime_input_event.idl modified Tue Jul 16 14:52:11 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ | 8 #ifndef PPAPI_C_PPB_IME_INPUT_EVENT_H_ |
9 #define PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ | 9 #define PPAPI_C_PPB_IME_INPUT_EVENT_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
16 #include "ppapi/c/pp_time.h" | 16 #include "ppapi/c/pp_time.h" |
17 #include "ppapi/c/pp_var.h" | 17 #include "ppapi/c/pp_var.h" |
18 #include "ppapi/c/ppb_input_event.h" | 18 #include "ppapi/c/ppb_input_event.h" |
19 | 19 |
20 #define PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_1 "PPB_IMEInputEvent(Dev);0.1" | 20 #define PPB_IME_INPUT_EVENT_INTERFACE_1_0 "PPB_IMEInputEvent;1.0" |
21 #define PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_2 "PPB_IMEInputEvent(Dev);0.2" | 21 #define PPB_IME_INPUT_EVENT_INTERFACE PPB_IME_INPUT_EVENT_INTERFACE_1_0 |
22 #define PPB_IME_INPUT_EVENT_DEV_INTERFACE PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_2 | |
23 | 22 |
24 /** | 23 /** |
25 * @file | 24 * @file |
26 * This file defines the <code>PPB_IMEInputEvent_Dev</code> interface. | 25 * This file defines the <code>PPB_IMEInputEvent</code> interface. |
27 */ | 26 */ |
28 | 27 |
29 | 28 |
30 /** | 29 /** |
31 * @addtogroup Interfaces | 30 * @addtogroup Interfaces |
32 * @{ | 31 * @{ |
33 */ | 32 */ |
34 struct PPB_IMEInputEvent_Dev_0_2 { | 33 struct PPB_IMEInputEvent_1_0 { |
35 /** | 34 /** |
36 * Create() creates an IME input event with the given parameters. Normally | 35 * Create() creates an IME input event with the given parameters. Normally |
37 * you will get an IME event passed through the <code>HandleInputEvent</code> | 36 * you will get an IME event passed through the <code>HandleInputEvent</code> |
38 * and will not need to create them, but some applications may want to create | 37 * and will not need to create them, but some applications may want to create |
39 * their own for internal use. | 38 * their own for internal use. |
40 * | 39 * |
41 * @param[in] instance The instance for which this event occurred. | 40 * @param[in] instance The instance for which this event occurred. |
42 * | 41 * |
43 * @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of | 42 * @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of |
44 * input event. The type must be one of the IME event types. | 43 * input event. The type must be one of the IME event types. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME | 142 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME |
144 * event. | 143 * event. |
145 * | 144 * |
146 * @param[out] start The start position of the current selection. | 145 * @param[out] start The start position of the current selection. |
147 * | 146 * |
148 * @param[out] end The end position of the current selection. | 147 * @param[out] end The end position of the current selection. |
149 */ | 148 */ |
150 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); | 149 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); |
151 }; | 150 }; |
152 | 151 |
153 typedef struct PPB_IMEInputEvent_Dev_0_2 PPB_IMEInputEvent_Dev; | 152 typedef struct PPB_IMEInputEvent_1_0 PPB_IMEInputEvent; |
154 | |
155 struct PPB_IMEInputEvent_Dev_0_1 { | |
156 PP_Bool (*IsIMEInputEvent)(PP_Resource resource); | |
157 struct PP_Var (*GetText)(PP_Resource ime_event); | |
158 uint32_t (*GetSegmentNumber)(PP_Resource ime_event); | |
159 uint32_t (*GetSegmentOffset)(PP_Resource ime_event, uint32_t index); | |
160 int32_t (*GetTargetSegment)(PP_Resource ime_event); | |
161 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); | |
dmichael (off chromium)
2013/07/16 22:42:07
You might need to check with yuzhu or raymes to se
Seigo Nonaka
2013/07/17 06:10:39
Sure, adding yuzhu@ as the reviewer.
yuzhu: AFAIK
yzshen1
2013/07/22 18:56:33
Sorry, I didn't realize there is a question for me
Seigo Nonaka
2013/07/23 11:49:54
Sure, at this moment I keep old IDL including both
| |
162 }; | |
163 /** | 153 /** |
164 * @} | 154 * @} |
165 */ | 155 */ |
166 | 156 |
167 #endif /* PPAPI_C_DEV_PPB_IME_INPUT_EVENT_DEV_H_ */ | 157 #endif /* PPAPI_C_PPB_IME_INPUT_EVENT_H_ */ |
168 | 158 |
OLD | NEW |