| 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 Jul 30 22:15:54 2012. */ | 6 /* From private/ppb_flash.idl modified Mon Oct 8 13:03:27 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_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 13 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_module.h" | 16 #include "ppapi/c/pp_module.h" |
| 16 #include "ppapi/c/pp_point.h" | 17 #include "ppapi/c/pp_point.h" |
| 17 #include "ppapi/c/pp_rect.h" | 18 #include "ppapi/c/pp_rect.h" |
| 18 #include "ppapi/c/pp_resource.h" | 19 #include "ppapi/c/pp_resource.h" |
| 19 #include "ppapi/c/pp_size.h" | 20 #include "ppapi/c/pp_size.h" |
| 20 #include "ppapi/c/pp_stdint.h" | 21 #include "ppapi/c/pp_stdint.h" |
| 21 #include "ppapi/c/pp_time.h" | 22 #include "ppapi/c/pp_time.h" |
| 22 #include "ppapi/c/pp_var.h" | 23 #include "ppapi/c/pp_var.h" |
| 23 | 24 |
| 24 #define PPB_FLASH_INTERFACE_12_0 "PPB_Flash;12.0" | 25 #define PPB_FLASH_INTERFACE_12_0 "PPB_Flash;12.0" |
| 25 #define PPB_FLASH_INTERFACE_12_1 "PPB_Flash;12.1" | 26 #define PPB_FLASH_INTERFACE_12_1 "PPB_Flash;12.1" |
| 26 #define PPB_FLASH_INTERFACE_12_2 "PPB_Flash;12.2" | 27 #define PPB_FLASH_INTERFACE_12_2 "PPB_Flash;12.2" |
| 27 #define PPB_FLASH_INTERFACE_12_3 "PPB_Flash;12.3" | 28 #define PPB_FLASH_INTERFACE_12_3 "PPB_Flash;12.3" |
| 28 #define PPB_FLASH_INTERFACE_12_4 "PPB_Flash;12.4" | 29 #define PPB_FLASH_INTERFACE_12_4 "PPB_Flash;12.4" |
| 29 #define PPB_FLASH_INTERFACE_12_5 "PPB_Flash;12.5" | 30 #define PPB_FLASH_INTERFACE_12_5 "PPB_Flash;12.5" |
| 30 #define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_5 | 31 #define PPB_FLASH_INTERFACE_12_6 "PPB_Flash;12.6" |
| 32 #define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_6 |
| 31 | 33 |
| 32 /** | 34 /** |
| 33 * @file | 35 * @file |
| 34 * This file contains the <code>PPB_Flash</code> interface. | 36 * This file contains the <code>PPB_Flash</code> interface. |
| 35 */ | 37 */ |
| 36 | 38 |
| 37 | 39 |
| 38 /** | 40 /** |
| 39 * @addtogroup Enums | 41 * @addtogroup Enums |
| 40 * @{ | 42 * @{ |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 */ | 122 */ |
| 121 | 123 |
| 122 /** | 124 /** |
| 123 * @addtogroup Interfaces | 125 * @addtogroup Interfaces |
| 124 * @{ | 126 * @{ |
| 125 */ | 127 */ |
| 126 /** | 128 /** |
| 127 * The <code>PPB_Flash</code> interface contains pointers to various functions | 129 * The <code>PPB_Flash</code> interface contains pointers to various functions |
| 128 * that are only needed to support Pepper Flash. | 130 * that are only needed to support Pepper Flash. |
| 129 */ | 131 */ |
| 130 struct PPB_Flash_12_5 { | 132 struct PPB_Flash_12_6 { |
| 131 /** | 133 /** |
| 132 * Sets or clears the rendering hint that the given plugin instance is always | 134 * Sets or clears the rendering hint that the given plugin instance is always |
| 133 * on top of page content. Somewhat more optimized painting can be used in | 135 * on top of page content. Somewhat more optimized painting can be used in |
| 134 * this case. | 136 * this case. |
| 135 */ | 137 */ |
| 136 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 138 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
| 137 /** | 139 /** |
| 138 * Draws the given pre-laid-out text. It is almost equivalent to Windows' | 140 * Draws the given pre-laid-out text. It is almost equivalent to Windows' |
| 139 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the | 141 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the |
| 140 * transform to apply before drawing). It also adds the allow_subpixel_aa | 142 * transform to apply before drawing). It also adds the allow_subpixel_aa |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 * result in an undefined PP_Var return value. | 226 * result in an undefined PP_Var return value. |
| 225 */ | 227 */ |
| 226 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); | 228 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
| 227 /** | 229 /** |
| 228 * Allows setting breakpad crash data which will be included in plugin crash | 230 * Allows setting breakpad crash data which will be included in plugin crash |
| 229 * reports. Returns PP_FALSE if crash data could not be set. | 231 * reports. Returns PP_FALSE if crash data could not be set. |
| 230 */ | 232 */ |
| 231 PP_Bool (*SetCrashData)(PP_Instance instance, | 233 PP_Bool (*SetCrashData)(PP_Instance instance, |
| 232 PP_FlashCrashKey key, | 234 PP_FlashCrashKey key, |
| 233 struct PP_Var value); | 235 struct PP_Var value); |
| 236 /** |
| 237 * Enumerates video capture devices. |video_capture| is a valid |
| 238 * PPB_VideoCapture_Dev resource. Once the operation has completed |
| 239 * successfully, |devices| will be set up with an array of |
| 240 * PPB_DeviceRef_Dev resources. |
| 241 * |
| 242 * 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 |
| 244 * the caller. |
| 245 * |
| 246 * NOTE: This method is a synchronous version of |EnumerateDevices| in |
| 247 * PPB_VideoCapture_Dev. |
| 248 */ |
| 249 int32_t (*EnumerateVideoCaptureDevices)(PP_Instance instance, |
| 250 PP_Resource video_capture, |
| 251 struct PP_ArrayOutput devices); |
| 234 }; | 252 }; |
| 235 | 253 |
| 236 typedef struct PPB_Flash_12_5 PPB_Flash; | 254 typedef struct PPB_Flash_12_6 PPB_Flash; |
| 237 | 255 |
| 238 struct PPB_Flash_12_0 { | 256 struct PPB_Flash_12_0 { |
| 239 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 257 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
| 240 PP_Bool (*DrawGlyphs)(PP_Instance instance, | 258 PP_Bool (*DrawGlyphs)(PP_Instance instance, |
| 241 PP_Resource pp_image_data, | 259 PP_Resource pp_image_data, |
| 242 const struct PP_FontDescription_Dev* font_desc, | 260 const struct PP_FontDescription_Dev* font_desc, |
| 243 uint32_t color, | 261 uint32_t color, |
| 244 const struct PP_Point* position, | 262 const struct PP_Point* position, |
| 245 const struct PP_Rect* clip, | 263 const struct PP_Rect* clip, |
| 246 const float transformation[3][3], | 264 const float transformation[3][3], |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 383 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
| 366 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 384 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
| 367 void (*PreloadFontWin)(const void* logfontw); | 385 void (*PreloadFontWin)(const void* logfontw); |
| 368 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); | 386 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); |
| 369 int32_t (*InvokePrinting)(PP_Instance instance); | 387 int32_t (*InvokePrinting)(PP_Instance instance); |
| 370 void (*UpdateActivity)(PP_Instance instance); | 388 void (*UpdateActivity)(PP_Instance instance); |
| 371 struct PP_Var (*GetDeviceID)(PP_Instance instance); | 389 struct PP_Var (*GetDeviceID)(PP_Instance instance); |
| 372 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); | 390 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); |
| 373 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); | 391 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
| 374 }; | 392 }; |
| 393 |
| 394 struct PPB_Flash_12_5 { |
| 395 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
| 396 PP_Bool (*DrawGlyphs)(PP_Instance instance, |
| 397 PP_Resource pp_image_data, |
| 398 const struct PP_FontDescription_Dev* font_desc, |
| 399 uint32_t color, |
| 400 const struct PP_Point* position, |
| 401 const struct PP_Rect* clip, |
| 402 const float transformation[3][3], |
| 403 PP_Bool allow_subpixel_aa, |
| 404 uint32_t glyph_count, |
| 405 const uint16_t glyph_indices[], |
| 406 const struct PP_Point glyph_advances[]); |
| 407 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); |
| 408 int32_t (*Navigate)(PP_Resource request_info, |
| 409 const char* target, |
| 410 PP_Bool from_user_action); |
| 411 void (*RunMessageLoop)(PP_Instance instance); |
| 412 void (*QuitMessageLoop)(PP_Instance instance); |
| 413 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
| 414 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
| 415 void (*PreloadFontWin)(const void* logfontw); |
| 416 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); |
| 417 int32_t (*InvokePrinting)(PP_Instance instance); |
| 418 void (*UpdateActivity)(PP_Instance instance); |
| 419 struct PP_Var (*GetDeviceID)(PP_Instance instance); |
| 420 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); |
| 421 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); |
| 422 PP_Bool (*SetCrashData)(PP_Instance instance, |
| 423 PP_FlashCrashKey key, |
| 424 struct PP_Var value); |
| 425 }; |
| 375 /** | 426 /** |
| 376 * @} | 427 * @} |
| 377 */ | 428 */ |
| 378 | 429 |
| 379 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ | 430 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ |
| 380 | 431 |
| OLD | NEW |