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 private/ppb_flash.idl modified Mon Oct 8 13:03:27 2012. */ | 6 /* From private/ppb_flash.idl modified Tue Nov 20 10:12:16 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_ |
9 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ | 9 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ |
10 | 10 |
11 #include "ppapi/c/dev/ppb_font_dev.h" | 11 #include "ppapi/c/dev/ppb_font_dev.h" |
12 #include "ppapi/c/pp_array_output.h" | 12 #include "ppapi/c/pp_array_output.h" |
13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
16 #include "ppapi/c/pp_module.h" | 16 #include "ppapi/c/pp_module.h" |
17 #include "ppapi/c/pp_point.h" | 17 #include "ppapi/c/pp_point.h" |
18 #include "ppapi/c/pp_rect.h" | 18 #include "ppapi/c/pp_rect.h" |
19 #include "ppapi/c/pp_resource.h" | 19 #include "ppapi/c/pp_resource.h" |
20 #include "ppapi/c/pp_size.h" | 20 #include "ppapi/c/pp_size.h" |
21 #include "ppapi/c/pp_stdint.h" | 21 #include "ppapi/c/pp_stdint.h" |
22 #include "ppapi/c/pp_time.h" | 22 #include "ppapi/c/pp_time.h" |
23 #include "ppapi/c/pp_var.h" | 23 #include "ppapi/c/pp_var.h" |
24 | 24 |
25 #define PPB_FLASH_INTERFACE_12_0 "PPB_Flash;12.0" | |
26 #define PPB_FLASH_INTERFACE_12_1 "PPB_Flash;12.1" | |
27 #define PPB_FLASH_INTERFACE_12_2 "PPB_Flash;12.2" | |
28 #define PPB_FLASH_INTERFACE_12_3 "PPB_Flash;12.3" | |
29 #define PPB_FLASH_INTERFACE_12_4 "PPB_Flash;12.4" | 25 #define PPB_FLASH_INTERFACE_12_4 "PPB_Flash;12.4" |
30 #define PPB_FLASH_INTERFACE_12_5 "PPB_Flash;12.5" | 26 #define PPB_FLASH_INTERFACE_12_5 "PPB_Flash;12.5" |
31 #define PPB_FLASH_INTERFACE_12_6 "PPB_Flash;12.6" | 27 #define PPB_FLASH_INTERFACE_12_6 "PPB_Flash;12.6" |
32 #define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_6 | 28 #define PPB_FLASH_INTERFACE_13_0 "PPB_Flash;13.0" |
| 29 #define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_13_0 |
33 | 30 |
34 /** | 31 /** |
35 * @file | 32 * @file |
36 * This file contains the <code>PPB_Flash</code> interface. | 33 * This file contains the <code>PPB_Flash</code> interface. |
37 */ | 34 */ |
38 | 35 |
39 | 36 |
40 /** | 37 /** |
41 * @addtogroup Enums | 38 * @addtogroup Enums |
42 * @{ | 39 * @{ |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 */ | 119 */ |
123 | 120 |
124 /** | 121 /** |
125 * @addtogroup Interfaces | 122 * @addtogroup Interfaces |
126 * @{ | 123 * @{ |
127 */ | 124 */ |
128 /** | 125 /** |
129 * The <code>PPB_Flash</code> interface contains pointers to various functions | 126 * The <code>PPB_Flash</code> interface contains pointers to various functions |
130 * that are only needed to support Pepper Flash. | 127 * that are only needed to support Pepper Flash. |
131 */ | 128 */ |
132 struct PPB_Flash_12_6 { | 129 struct PPB_Flash_13_0 { |
133 /** | 130 /** |
134 * Sets or clears the rendering hint that the given plugin instance is always | 131 * Sets or clears the rendering hint that the given plugin instance is always |
135 * on top of page content. Somewhat more optimized painting can be used in | 132 * on top of page content. Somewhat more optimized painting can be used in |
136 * this case. | 133 * this case. |
137 */ | 134 */ |
138 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 135 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
139 /** | 136 /** |
140 * Draws the given pre-laid-out text. It is almost equivalent to Windows' | 137 * Draws the given pre-laid-out text. It is almost equivalent to Windows' |
141 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the | 138 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the |
142 * transform to apply before drawing). It also adds the allow_subpixel_aa | 139 * transform to apply before drawing). It also adds the allow_subpixel_aa |
(...skipping 18 matching lines...) Expand all Loading... |
161 */ | 158 */ |
162 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | 159 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); |
163 /** | 160 /** |
164 * Navigate to the URL given by the given URLRequestInfo. (This supports GETs, | 161 * Navigate to the URL given by the given URLRequestInfo. (This supports GETs, |
165 * POSTs, and javascript: URLs.) May open a new tab if target is not "_self". | 162 * POSTs, and javascript: URLs.) May open a new tab if target is not "_self". |
166 */ | 163 */ |
167 int32_t (*Navigate)(PP_Resource request_info, | 164 int32_t (*Navigate)(PP_Resource request_info, |
168 const char* target, | 165 const char* target, |
169 PP_Bool from_user_action); | 166 PP_Bool from_user_action); |
170 /** | 167 /** |
171 * Runs a nested message loop. The plugin will be reentered from this call. | |
172 * This function is used in places where Flash would normally enter a nested | |
173 * message loop (e.g., when displaying context menus), but Pepper provides | |
174 * only an asynchronous call. After performing that asynchronous call, call | |
175 * |RunMessageLoop()|. In the callback, call |QuitMessageLoop()|. | |
176 */ | |
177 void (*RunMessageLoop)(PP_Instance instance); | |
178 /* Posts a quit message for the outermost nested message loop. Use this to | |
179 * exit and return back to the caller after you call RunMessageLoop. | |
180 */ | |
181 void (*QuitMessageLoop)(PP_Instance instance); | |
182 /** | |
183 * Retrieves the local time zone offset from GM time for the given UTC time. | 168 * Retrieves the local time zone offset from GM time for the given UTC time. |
184 */ | 169 */ |
185 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 170 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
186 /** | 171 /** |
187 * Gets a (string) with "command-line" options for Flash; used to pass | 172 * Gets a (string) with "command-line" options for Flash; used to pass |
188 * run-time debugging parameters, etc. | 173 * run-time debugging parameters, etc. |
189 */ | 174 */ |
190 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 175 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
191 /** | 176 /** |
192 * Loads the given font in a more priviledged process on Windows. Call this if | 177 * Loads the given font in a more priviledged process on Windows. Call this if |
193 * Windows is giving errors for font calls. See | 178 * Windows is giving errors for font calls. See |
194 * content/renderer/font_cache_dispatcher_win.cc | 179 * content/renderer/font_cache_dispatcher_win.cc |
195 * | 180 * |
196 * The parameter is a pointer to a LOGFONTW structure. | 181 * The parameter is a pointer to a LOGFONTW structure. |
197 * | 182 * |
198 * On non-Windows platforms, this function does nothing. | 183 * On non-Windows platforms, this function does nothing. |
199 */ | 184 */ |
200 void (*PreloadFontWin)(const void* logfontw); | 185 void (*PreloadFontWin)(const void* logfontw); |
201 /** | 186 /** |
202 * Returns whether the given rectangle (in the plugin) is topmost, i.e., above | 187 * Returns whether the given rectangle (in the plugin) is topmost, i.e., above |
203 * all other web content. | 188 * all other web content. |
204 */ | 189 */ |
205 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); | 190 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); |
206 /** | 191 /** |
207 * Does nothing, deprecated. See PPB_Flash_Print. | |
208 */ | |
209 int32_t (*InvokePrinting)(PP_Instance instance); | |
210 /** | |
211 * Indicates that there's activity and, e.g., the screensaver shouldn't kick | 192 * Indicates that there's activity and, e.g., the screensaver shouldn't kick |
212 * in. | 193 * in. |
213 */ | 194 */ |
214 void (*UpdateActivity)(PP_Instance instance); | 195 void (*UpdateActivity)(PP_Instance instance); |
215 /** | 196 /** |
216 * Returns the device ID as a string. Returns a PP_VARTYPE_UNDEFINED on error. | |
217 * Deprecated, use GetDeviceIDAsync. | |
218 */ | |
219 struct PP_Var (*GetDeviceID)(PP_Instance instance); | |
220 /** | |
221 * Deprecated. See GetSetting(). | |
222 */ | |
223 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); | |
224 /** | |
225 * Returns the value associated with the given setting. Invalid enums will | 197 * Returns the value associated with the given setting. Invalid enums will |
226 * result in an undefined PP_Var return value. | 198 * result in an undefined PP_Var return value. |
227 */ | 199 */ |
228 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); | 200 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
229 /** | 201 /** |
230 * Allows setting breakpad crash data which will be included in plugin crash | 202 * Allows setting breakpad crash data which will be included in plugin crash |
231 * reports. Returns PP_FALSE if crash data could not be set. | 203 * reports. Returns PP_FALSE if crash data could not be set. |
232 */ | 204 */ |
233 PP_Bool (*SetCrashData)(PP_Instance instance, | 205 PP_Bool (*SetCrashData)(PP_Instance instance, |
234 PP_FlashCrashKey key, | 206 PP_FlashCrashKey key, |
235 struct PP_Var value); | 207 struct PP_Var value); |
236 /** | 208 /** |
237 * Enumerates video capture devices. |video_capture| is a valid | 209 * Enumerates video capture devices. |video_capture| is a valid |
238 * PPB_VideoCapture_Dev resource. Once the operation has completed | 210 * PPB_VideoCapture_Dev resource. Once the operation has completed |
239 * successfully, |devices| will be set up with an array of | 211 * successfully, |devices| will be set up with an array of |
240 * PPB_DeviceRef_Dev resources. | 212 * PPB_DeviceRef_Dev resources. |
241 * | 213 * |
242 * PP_OK is returned on success and different pepper error code on failure. | 214 * PP_OK is returned on success and different pepper error code on failure. |
243 * The ref count of the returned |devices| has already been increased by 1 for | 215 * The ref count of the returned |devices| has already been increased by 1 for |
244 * the caller. | 216 * the caller. |
245 * | 217 * |
246 * NOTE: This method is a synchronous version of |EnumerateDevices| in | 218 * NOTE: This method is a synchronous version of |EnumerateDevices| in |
247 * PPB_VideoCapture_Dev. | 219 * PPB_VideoCapture_Dev. |
248 */ | 220 */ |
249 int32_t (*EnumerateVideoCaptureDevices)(PP_Instance instance, | 221 int32_t (*EnumerateVideoCaptureDevices)(PP_Instance instance, |
250 PP_Resource video_capture, | 222 PP_Resource video_capture, |
251 struct PP_ArrayOutput devices); | 223 struct PP_ArrayOutput devices); |
252 }; | 224 }; |
253 | 225 |
254 typedef struct PPB_Flash_12_6 PPB_Flash; | 226 typedef struct PPB_Flash_13_0 PPB_Flash; |
255 | 227 |
256 struct PPB_Flash_12_0 { | 228 struct PPB_Flash_12_4 { |
257 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 229 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
258 PP_Bool (*DrawGlyphs)(PP_Instance instance, | 230 PP_Bool (*DrawGlyphs)(PP_Instance instance, |
259 PP_Resource pp_image_data, | 231 PP_Resource pp_image_data, |
260 const struct PP_FontDescription_Dev* font_desc, | |
261 uint32_t color, | |
262 const struct PP_Point* position, | |
263 const struct PP_Rect* clip, | |
264 const float transformation[3][3], | |
265 PP_Bool allow_subpixel_aa, | |
266 uint32_t glyph_count, | |
267 const uint16_t glyph_indices[], | |
268 const struct PP_Point glyph_advances[]); | |
269 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | |
270 int32_t (*Navigate)(PP_Resource request_info, | |
271 const char* target, | |
272 PP_Bool from_user_action); | |
273 void (*RunMessageLoop)(PP_Instance instance); | |
274 void (*QuitMessageLoop)(PP_Instance instance); | |
275 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | |
276 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | |
277 void (*PreloadFontWin)(const void* logfontw); | |
278 }; | |
279 | |
280 struct PPB_Flash_12_1 { | |
281 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | |
282 PP_Bool (*DrawGlyphs)(PP_Instance instance, | |
283 PP_Resource pp_image_data, | |
284 const struct PP_FontDescription_Dev* font_desc, | |
285 uint32_t color, | |
286 const struct PP_Point* position, | |
287 const struct PP_Rect* clip, | |
288 const float transformation[3][3], | |
289 PP_Bool allow_subpixel_aa, | |
290 uint32_t glyph_count, | |
291 const uint16_t glyph_indices[], | |
292 const struct PP_Point glyph_advances[]); | |
293 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | |
294 int32_t (*Navigate)(PP_Resource request_info, | |
295 const char* target, | |
296 PP_Bool from_user_action); | |
297 void (*RunMessageLoop)(PP_Instance instance); | |
298 void (*QuitMessageLoop)(PP_Instance instance); | |
299 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | |
300 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | |
301 void (*PreloadFontWin)(const void* logfontw); | |
302 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); | |
303 int32_t (*InvokePrinting)(PP_Instance instance); | |
304 void (*UpdateActivity)(PP_Instance instance); | |
305 }; | |
306 | |
307 struct PPB_Flash_12_2 { | |
308 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | |
309 PP_Bool (*DrawGlyphs)(PP_Instance instance, | |
310 PP_Resource pp_image_data, | |
311 const struct PP_FontDescription_Dev* font_desc, | |
312 uint32_t color, | |
313 const struct PP_Point* position, | |
314 const struct PP_Rect* clip, | |
315 const float transformation[3][3], | |
316 PP_Bool allow_subpixel_aa, | |
317 uint32_t glyph_count, | |
318 const uint16_t glyph_indices[], | |
319 const struct PP_Point glyph_advances[]); | |
320 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | |
321 int32_t (*Navigate)(PP_Resource request_info, | |
322 const char* target, | |
323 PP_Bool from_user_action); | |
324 void (*RunMessageLoop)(PP_Instance instance); | |
325 void (*QuitMessageLoop)(PP_Instance instance); | |
326 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | |
327 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | |
328 void (*PreloadFontWin)(const void* logfontw); | |
329 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); | |
330 int32_t (*InvokePrinting)(PP_Instance instance); | |
331 void (*UpdateActivity)(PP_Instance instance); | |
332 struct PP_Var (*GetDeviceID)(PP_Instance instance); | |
333 }; | |
334 | |
335 struct PPB_Flash_12_3 { | |
336 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | |
337 PP_Bool (*DrawGlyphs)(PP_Instance instance, | |
338 PP_Resource pp_image_data, | |
339 const struct PP_FontDescription_Dev* font_desc, | 232 const struct PP_FontDescription_Dev* font_desc, |
340 uint32_t color, | 233 uint32_t color, |
341 const struct PP_Point* position, | 234 const struct PP_Point* position, |
342 const struct PP_Rect* clip, | 235 const struct PP_Rect* clip, |
343 const float transformation[3][3], | 236 const float transformation[3][3], |
344 PP_Bool allow_subpixel_aa, | 237 PP_Bool allow_subpixel_aa, |
345 uint32_t glyph_count, | 238 uint32_t glyph_count, |
346 const uint16_t glyph_indices[], | 239 const uint16_t glyph_indices[], |
347 const struct PP_Point glyph_advances[]); | 240 const struct PP_Point glyph_advances[]); |
348 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | 241 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); |
349 int32_t (*Navigate)(PP_Resource request_info, | 242 int32_t (*Navigate)(PP_Resource request_info, |
350 const char* target, | 243 const char* target, |
351 PP_Bool from_user_action); | 244 PP_Bool from_user_action); |
352 void (*RunMessageLoop)(PP_Instance instance); | 245 void (*RunMessageLoop)(PP_Instance instance); |
353 void (*QuitMessageLoop)(PP_Instance instance); | 246 void (*QuitMessageLoop)(PP_Instance instance); |
354 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 247 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
355 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 248 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
356 void (*PreloadFontWin)(const void* logfontw); | 249 void (*PreloadFontWin)(const void* logfontw); |
357 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); | 250 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); |
358 int32_t (*InvokePrinting)(PP_Instance instance); | 251 int32_t (*InvokePrinting)(PP_Instance instance); |
359 void (*UpdateActivity)(PP_Instance instance); | 252 void (*UpdateActivity)(PP_Instance instance); |
360 struct PP_Var (*GetDeviceID)(PP_Instance instance); | 253 struct PP_Var (*GetDeviceID)(PP_Instance instance); |
361 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); | 254 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); |
| 255 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
362 }; | 256 }; |
363 | 257 |
364 struct PPB_Flash_12_4 { | 258 struct PPB_Flash_12_5 { |
365 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 259 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
366 PP_Bool (*DrawGlyphs)(PP_Instance instance, | 260 PP_Bool (*DrawGlyphs)(PP_Instance instance, |
367 PP_Resource pp_image_data, | 261 PP_Resource pp_image_data, |
368 const struct PP_FontDescription_Dev* font_desc, | 262 const struct PP_FontDescription_Dev* font_desc, |
369 uint32_t color, | 263 uint32_t color, |
370 const struct PP_Point* position, | 264 const struct PP_Point* position, |
371 const struct PP_Rect* clip, | 265 const struct PP_Rect* clip, |
372 const float transformation[3][3], | 266 const float transformation[3][3], |
373 PP_Bool allow_subpixel_aa, | 267 PP_Bool allow_subpixel_aa, |
374 uint32_t glyph_count, | 268 uint32_t glyph_count, |
375 const uint16_t glyph_indices[], | 269 const uint16_t glyph_indices[], |
376 const struct PP_Point glyph_advances[]); | 270 const struct PP_Point glyph_advances[]); |
377 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | 271 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); |
378 int32_t (*Navigate)(PP_Resource request_info, | 272 int32_t (*Navigate)(PP_Resource request_info, |
379 const char* target, | 273 const char* target, |
380 PP_Bool from_user_action); | 274 PP_Bool from_user_action); |
381 void (*RunMessageLoop)(PP_Instance instance); | 275 void (*RunMessageLoop)(PP_Instance instance); |
382 void (*QuitMessageLoop)(PP_Instance instance); | 276 void (*QuitMessageLoop)(PP_Instance instance); |
383 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 277 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
384 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 278 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
385 void (*PreloadFontWin)(const void* logfontw); | 279 void (*PreloadFontWin)(const void* logfontw); |
386 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); | 280 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); |
387 int32_t (*InvokePrinting)(PP_Instance instance); | 281 int32_t (*InvokePrinting)(PP_Instance instance); |
388 void (*UpdateActivity)(PP_Instance instance); | 282 void (*UpdateActivity)(PP_Instance instance); |
389 struct PP_Var (*GetDeviceID)(PP_Instance instance); | 283 struct PP_Var (*GetDeviceID)(PP_Instance instance); |
390 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); | 284 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); |
391 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); | 285 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
| 286 PP_Bool (*SetCrashData)(PP_Instance instance, |
| 287 PP_FlashCrashKey key, |
| 288 struct PP_Var value); |
392 }; | 289 }; |
393 | 290 |
394 struct PPB_Flash_12_5 { | 291 struct PPB_Flash_12_6 { |
395 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 292 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
396 PP_Bool (*DrawGlyphs)(PP_Instance instance, | 293 PP_Bool (*DrawGlyphs)(PP_Instance instance, |
397 PP_Resource pp_image_data, | 294 PP_Resource pp_image_data, |
398 const struct PP_FontDescription_Dev* font_desc, | 295 const struct PP_FontDescription_Dev* font_desc, |
399 uint32_t color, | 296 uint32_t color, |
400 const struct PP_Point* position, | 297 const struct PP_Point* position, |
401 const struct PP_Rect* clip, | 298 const struct PP_Rect* clip, |
402 const float transformation[3][3], | 299 const float transformation[3][3], |
403 PP_Bool allow_subpixel_aa, | 300 PP_Bool allow_subpixel_aa, |
404 uint32_t glyph_count, | 301 uint32_t glyph_count, |
(...skipping 10 matching lines...) Expand all Loading... |
415 void (*PreloadFontWin)(const void* logfontw); | 312 void (*PreloadFontWin)(const void* logfontw); |
416 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); | 313 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); |
417 int32_t (*InvokePrinting)(PP_Instance instance); | 314 int32_t (*InvokePrinting)(PP_Instance instance); |
418 void (*UpdateActivity)(PP_Instance instance); | 315 void (*UpdateActivity)(PP_Instance instance); |
419 struct PP_Var (*GetDeviceID)(PP_Instance instance); | 316 struct PP_Var (*GetDeviceID)(PP_Instance instance); |
420 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); | 317 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); |
421 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); | 318 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
422 PP_Bool (*SetCrashData)(PP_Instance instance, | 319 PP_Bool (*SetCrashData)(PP_Instance instance, |
423 PP_FlashCrashKey key, | 320 PP_FlashCrashKey key, |
424 struct PP_Var value); | 321 struct PP_Var value); |
| 322 int32_t (*EnumerateVideoCaptureDevices)(PP_Instance instance, |
| 323 PP_Resource video_capture, |
| 324 struct PP_ArrayOutput devices); |
425 }; | 325 }; |
426 /** | 326 /** |
427 * @} | 327 * @} |
428 */ | 328 */ |
429 | 329 |
430 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ | 330 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ |
431 | 331 |
OLD | NEW |