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

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

Issue 9960083: Add a Flash API to get the device ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 Fri Feb 17 15:52:14 2012. */ 6 /* From private/ppb_flash.idl modified Tue Apr 10 15:38:45 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 PPB_FLASH_INTERFACE_12_1 26 #define PPB_FLASH_INTERFACE_12_2 "PPB_Flash;12.2"
27 #define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_2
27 28
28 /** 29 /**
29 * @file 30 * @file
30 * This file contains the <code>PPB_Flash</code> interface. 31 * This file contains the <code>PPB_Flash</code> interface.
31 */ 32 */
32 33
33 34
34 /** 35 /**
35 * @addtogroup Interfaces 36 * @addtogroup Interfaces
36 * @{ 37 * @{
37 */ 38 */
38 /** 39 /**
39 * The <code>PPB_Flash</code> interface contains pointers to various functions 40 * The <code>PPB_Flash</code> interface contains pointers to various functions
40 * that are only needed to support Pepper Flash. 41 * that are only needed to support Pepper Flash.
41 */ 42 */
42 struct PPB_Flash_12_1 { 43 struct PPB_Flash_12_2 {
43 /** 44 /**
44 * Sets or clears the rendering hint that the given plugin instance is always 45 * Sets or clears the rendering hint that the given plugin instance is always
45 * on top of page content. Somewhat more optimized painting can be used in 46 * on top of page content. Somewhat more optimized painting can be used in
46 * this case. 47 * this case.
47 */ 48 */
48 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); 49 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
49 /** 50 /**
50 * Draws the given pre-laid-out text. It is almost equivalent to Windows' 51 * Draws the given pre-laid-out text. It is almost equivalent to Windows'
51 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the 52 * ExtTextOut with the addition of the transformation (a 3x3 matrix given the
52 * transform to apply before drawing). It also adds the allow_subpixel_aa 53 * transform to apply before drawing). It also adds the allow_subpixel_aa
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect); 116 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect);
116 /** 117 /**
117 * Invokes printing for the given instance. 118 * Invokes printing for the given instance.
118 */ 119 */
119 int32_t (*InvokePrinting)(PP_Instance instance); 120 int32_t (*InvokePrinting)(PP_Instance instance);
120 /** 121 /**
121 * Indicates that there's activity and, e.g., the screensaver shouldn't kick 122 * Indicates that there's activity and, e.g., the screensaver shouldn't kick
122 * in. 123 * in.
123 */ 124 */
124 void (*UpdateActivity)(PP_Instance instance); 125 void (*UpdateActivity)(PP_Instance instance);
126 /**
127 * Returns the device ID as a string. Returns a PP_VARTYPE_UNDEFINED on error.
128 */
129 struct PP_Var (*GetDeviceID)(PP_Instance instance);
125 }; 130 };
126 131
127 typedef struct PPB_Flash_12_1 PPB_Flash; 132 typedef struct PPB_Flash_12_2 PPB_Flash;
128 133
129 struct PPB_Flash_12_0 { 134 struct PPB_Flash_12_0 {
130 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); 135 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
131 PP_Bool (*DrawGlyphs)(PP_Instance instance, 136 PP_Bool (*DrawGlyphs)(PP_Instance instance,
132 PP_Resource pp_image_data, 137 PP_Resource pp_image_data,
133 const struct PP_FontDescription_Dev* font_desc, 138 const struct PP_FontDescription_Dev* font_desc,
134 uint32_t color, 139 uint32_t color,
135 const struct PP_Point* position, 140 const struct PP_Point* position,
136 const struct PP_Rect* clip, 141 const struct PP_Rect* clip,
137 const float transformation[3][3], 142 const float transformation[3][3],
138 PP_Bool allow_subpixel_aa, 143 PP_Bool allow_subpixel_aa,
139 uint32_t glyph_count, 144 uint32_t glyph_count,
140 const uint16_t glyph_indices[], 145 const uint16_t glyph_indices[],
141 const struct PP_Point glyph_advances[]); 146 const struct PP_Point glyph_advances[]);
142 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); 147 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url);
143 int32_t (*Navigate)(PP_Resource request_info, 148 int32_t (*Navigate)(PP_Resource request_info,
144 const char* target, 149 const char* target,
145 PP_Bool from_user_action); 150 PP_Bool from_user_action);
146 void (*RunMessageLoop)(PP_Instance instance); 151 void (*RunMessageLoop)(PP_Instance instance);
147 void (*QuitMessageLoop)(PP_Instance instance); 152 void (*QuitMessageLoop)(PP_Instance instance);
148 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); 153 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t);
149 struct PP_Var (*GetCommandLineArgs)(PP_Module module); 154 struct PP_Var (*GetCommandLineArgs)(PP_Module module);
150 void (*PreloadFontWin)(const void* logfontw); 155 void (*PreloadFontWin)(const void* logfontw);
151 }; 156 };
157
158 struct PPB_Flash_12_1 {
159 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
160 PP_Bool (*DrawGlyphs)(PP_Instance instance,
161 PP_Resource pp_image_data,
162 const struct PP_FontDescription_Dev* font_desc,
163 uint32_t color,
164 const struct PP_Point* position,
165 const struct PP_Rect* clip,
166 const float transformation[3][3],
167 PP_Bool allow_subpixel_aa,
168 uint32_t glyph_count,
169 const uint16_t glyph_indices[],
170 const struct PP_Point glyph_advances[]);
171 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url);
172 int32_t (*Navigate)(PP_Resource request_info,
173 const char* target,
174 PP_Bool from_user_action);
175 void (*RunMessageLoop)(PP_Instance instance);
176 void (*QuitMessageLoop)(PP_Instance instance);
177 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t);
178 struct PP_Var (*GetCommandLineArgs)(PP_Module module);
179 void (*PreloadFontWin)(const void* logfontw);
180 PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect);
181 int32_t (*InvokePrinting)(PP_Instance instance);
182 void (*UpdateActivity)(PP_Instance instance);
183 };
152 /** 184 /**
153 * @} 185 * @}
154 */ 186 */
155 187
156 /** 188 /**
157 * The old version of the interface, which cannot be generated from IDL. 189 * The old version of the interface, which cannot be generated from IDL.
158 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184 190 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184
159 */ 191 */
160 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11" 192 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11"
161 struct PPB_Flash_11 { 193 struct PPB_Flash_11 {
(...skipping 12 matching lines...) Expand all
174 int32_t (*Navigate)(PP_Resource request_info, 206 int32_t (*Navigate)(PP_Resource request_info,
175 const char* target, 207 const char* target,
176 bool from_user_action); 208 bool from_user_action);
177 void (*RunMessageLoop)(PP_Instance instance); 209 void (*RunMessageLoop)(PP_Instance instance);
178 void (*QuitMessageLoop)(PP_Instance instance); 210 void (*QuitMessageLoop)(PP_Instance instance);
179 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); 211 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t);
180 struct PP_Var (*GetCommandLineArgs)(PP_Module module); 212 struct PP_Var (*GetCommandLineArgs)(PP_Module module);
181 }; 213 };
182 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ 214 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */
183 215
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