Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: ppapi/c/private/ppb_flash.h

Issue 10681006: Add ppapi interface for setting crash data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/api/private/ppb_flash.idl ('k') | ppapi/cpp/private/flash.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Thu Jun 14 16:38:53 2012. */ 6 /* From private/ppb_flash.idl modified Mon Jun 25 12:46:59 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_bool.h" 12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_module.h" 15 #include "ppapi/c/pp_module.h"
16 #include "ppapi/c/pp_point.h" 16 #include "ppapi/c/pp_point.h"
17 #include "ppapi/c/pp_rect.h" 17 #include "ppapi/c/pp_rect.h"
18 #include "ppapi/c/pp_resource.h" 18 #include "ppapi/c/pp_resource.h"
19 #include "ppapi/c/pp_size.h" 19 #include "ppapi/c/pp_size.h"
20 #include "ppapi/c/pp_stdint.h" 20 #include "ppapi/c/pp_stdint.h"
21 #include "ppapi/c/pp_time.h" 21 #include "ppapi/c/pp_time.h"
22 #include "ppapi/c/pp_var.h" 22 #include "ppapi/c/pp_var.h"
23 23
24 #define PPB_FLASH_INTERFACE_12_0 "PPB_Flash;12.0" 24 #define PPB_FLASH_INTERFACE_12_0 "PPB_Flash;12.0"
25 #define PPB_FLASH_INTERFACE_12_1 "PPB_Flash;12.1" 25 #define PPB_FLASH_INTERFACE_12_1 "PPB_Flash;12.1"
26 #define PPB_FLASH_INTERFACE_12_2 "PPB_Flash;12.2" 26 #define PPB_FLASH_INTERFACE_12_2 "PPB_Flash;12.2"
27 #define PPB_FLASH_INTERFACE_12_3 "PPB_Flash;12.3" 27 #define PPB_FLASH_INTERFACE_12_3 "PPB_Flash;12.3"
28 #define PPB_FLASH_INTERFACE_12_4 "PPB_Flash;12.4" 28 #define PPB_FLASH_INTERFACE_12_4 "PPB_Flash;12.4"
29 #define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_4 29 #define PPB_FLASH_INTERFACE_12_5 "PPB_Flash;12.5"
30 #define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_5
30 31
31 /** 32 /**
32 * @file 33 * @file
33 * This file contains the <code>PPB_Flash</code> interface. 34 * This file contains the <code>PPB_Flash</code> interface.
34 */ 35 */
35 36
36 37
37 /** 38 /**
38 * @addtogroup Enums 39 * @addtogroup Enums
39 * @{ 40 * @{
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * 76 *
76 * Returns an undefined PP_Var on invalid instance. 77 * Returns an undefined PP_Var on invalid instance.
77 */ 78 */
78 PP_FLASHSETTING_LANGUAGE = 4, 79 PP_FLASHSETTING_LANGUAGE = 4,
79 /** 80 /**
80 * Specifies the number of CPU cores that are present on the system. 81 * Specifies the number of CPU cores that are present on the system.
81 */ 82 */
82 PP_FLASHSETTING_NUMCORES = 5 83 PP_FLASHSETTING_NUMCORES = 5
83 } PP_FlashSetting; 84 } PP_FlashSetting;
84 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FlashSetting, 4); 85 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FlashSetting, 4);
86
87 /**
88 * This enum provides keys for setting breakpad crash report data.
89 */
90 typedef enum {
91 /**
92 * Specifies the document URL which contains the flash instance.
93 */
94 PP_FLASHCRASHKEY_URL = 1
95 } PP_FlashCrashKey;
96 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FlashCrashKey, 4);
85 /** 97 /**
86 * @} 98 * @}
87 */ 99 */
88 100
89 /** 101 /**
90 * @addtogroup Interfaces 102 * @addtogroup Interfaces
91 * @{ 103 * @{
92 */ 104 */
93 /** 105 /**
94 * The <code>PPB_Flash</code> interface contains pointers to various functions 106 * The <code>PPB_Flash</code> interface contains pointers to various functions
95 * that are only needed to support Pepper Flash. 107 * that are only needed to support Pepper Flash.
96 */ 108 */
97 struct PPB_Flash_12_4 { 109 struct PPB_Flash_12_5 {
98 /** 110 /**
99 * Sets or clears the rendering hint that the given plugin instance is always 111 * Sets or clears the rendering hint that the given plugin instance is always
100 * on top of page content. Somewhat more optimized painting can be used in 112 * on top of page content. Somewhat more optimized painting can be used in
101 * this case. 113 * this case.
102 */ 114 */
103 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); 115 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
104 /** 116 /**
105 * Draws the given pre-laid-out text. It is almost equivalent to Windows' 117 * Draws the given pre-laid-out text. It is almost equivalent to Windows'
106 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the 118 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the
107 * transform to apply before drawing). It also adds the allow_subpixel_aa 119 * transform to apply before drawing). It also adds the allow_subpixel_aa
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 struct PP_Var (*GetDeviceID)(PP_Instance instance); 196 struct PP_Var (*GetDeviceID)(PP_Instance instance);
185 /** 197 /**
186 * Deprecated. See GetSetting(). 198 * Deprecated. See GetSetting().
187 */ 199 */
188 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); 200 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting);
189 /** 201 /**
190 * Returns the value associated with the given setting. Invalid enums will 202 * Returns the value associated with the given setting. Invalid enums will
191 * result in an undefined PP_Var return value. 203 * result in an undefined PP_Var return value.
192 */ 204 */
193 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting); 205 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting);
206 /**
207 * Allows setting breakpad crash data which will be included in plugin crash
208 * reports. Returns PP_FALSE if crash data could not be set.
209 */
210 PP_Bool (*SetCrashData)(PP_Instance instance,
211 PP_FlashCrashKey key,
212 struct PP_Var value);
194 }; 213 };
195 214
196 typedef struct PPB_Flash_12_4 PPB_Flash; 215 typedef struct PPB_Flash_12_5 PPB_Flash;
197 216
198 struct PPB_Flash_12_0 { 217 struct PPB_Flash_12_0 {
199 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); 218 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
200 PP_Bool (*DrawGlyphs)(PP_Instance instance, 219 PP_Bool (*DrawGlyphs)(PP_Instance instance,
201 PP_Resource pp_image_data, 220 PP_Resource pp_image_data,
202 const struct PP_FontDescription_Dev* font_desc, 221 const struct PP_FontDescription_Dev* font_desc,
203 uint32_t color, 222 uint32_t color,
204 const struct PP_Point* position, 223 const struct PP_Point* position,
205 const struct PP_Rect* clip, 224 const struct PP_Rect* clip,
206 const float transformation[3][3], 225 const float transformation[3][3],
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 void (*QuitMessageLoop)(PP_Instance instance); 314 void (*QuitMessageLoop)(PP_Instance instance);
296 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); 315 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t);
297 struct PP_Var (*GetCommandLineArgs)(PP_Module module); 316 struct PP_Var (*GetCommandLineArgs)(PP_Module module);
298 void (*PreloadFontWin)(const void* logfontw); 317 void (*PreloadFontWin)(const void* logfontw);
299 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); 318 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect);
300 int32_t (*InvokePrinting)(PP_Instance instance); 319 int32_t (*InvokePrinting)(PP_Instance instance);
301 void (*UpdateActivity)(PP_Instance instance); 320 void (*UpdateActivity)(PP_Instance instance);
302 struct PP_Var (*GetDeviceID)(PP_Instance instance); 321 struct PP_Var (*GetDeviceID)(PP_Instance instance);
303 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting); 322 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting);
304 }; 323 };
324
325 struct PPB_Flash_12_4 {
326 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
327 PP_Bool (*DrawGlyphs)(PP_Instance instance,
328 PP_Resource pp_image_data,
329 const struct PP_FontDescription_Dev* font_desc,
330 uint32_t color,
331 const struct PP_Point* position,
332 const struct PP_Rect* clip,
333 const float transformation[3][3],
334 PP_Bool allow_subpixel_aa,
335 uint32_t glyph_count,
336 const uint16_t glyph_indices[],
337 const struct PP_Point glyph_advances[]);
338 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url);
339 int32_t (*Navigate)(PP_Resource request_info,
340 const char* target,
341 PP_Bool from_user_action);
342 void (*RunMessageLoop)(PP_Instance instance);
343 void (*QuitMessageLoop)(PP_Instance instance);
344 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t);
345 struct PP_Var (*GetCommandLineArgs)(PP_Module module);
346 void (*PreloadFontWin)(const void* logfontw);
347 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect);
348 int32_t (*InvokePrinting)(PP_Instance instance);
349 void (*UpdateActivity)(PP_Instance instance);
350 struct PP_Var (*GetDeviceID)(PP_Instance instance);
351 int32_t (*GetSettingInt)(PP_Instance instance, PP_FlashSetting setting);
352 struct PP_Var (*GetSetting)(PP_Instance instance, PP_FlashSetting setting);
353 };
305 /** 354 /**
306 * @} 355 * @}
307 */ 356 */
308 357
309 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ 358 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */
310 359
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_flash.idl ('k') | ppapi/cpp/private/flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698