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

Side by Side Diff: ppapi/api/private/ppb_flash.idl

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 | « no previous file | ppapi/c/private/ppb_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 /** 6 /**
7 * This file contains the <code>PPB_Flash</code> interface. 7 * This file contains the <code>PPB_Flash</code> interface.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
11 M17 = 12.0, 11 M17 = 12.0,
12 M19 = 12.1 12 M19 = 12.1,
13 M20 = 12.2
13 }; 14 };
14 15
15 /** 16 /**
16 * The <code>PPB_Flash</code> interface contains pointers to various functions 17 * The <code>PPB_Flash</code> interface contains pointers to various functions
17 * that are only needed to support Pepper Flash. 18 * that are only needed to support Pepper Flash.
18 */ 19 */
19 interface PPB_Flash { 20 interface PPB_Flash {
20 /** 21 /**
21 * Sets or clears the rendering hint that the given plugin instance is always 22 * Sets or clears the rendering hint that the given plugin instance is always
22 * on top of page content. Somewhat more optimized painting can be used in 23 * on top of page content. Somewhat more optimized painting can be used in
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 int32_t InvokePrinting( 123 int32_t InvokePrinting(
123 [in] PP_Instance instance); 124 [in] PP_Instance instance);
124 125
125 /** 126 /**
126 * Indicates that there's activity and, e.g., the screensaver shouldn't kick 127 * Indicates that there's activity and, e.g., the screensaver shouldn't kick
127 * in. 128 * in.
128 */ 129 */
129 [version=12.1] 130 [version=12.1]
130 void UpdateActivity( 131 void UpdateActivity(
131 [in] PP_Instance instance); 132 [in] PP_Instance instance);
133
134 /**
135 * Returns the device ID as a string. Returns a PP_VARTYPE_UNDEFINED on error.
136 */
137 [version=12.2]
138 PP_Var GetDeviceID([in] PP_Instance instance);
132 }; 139 };
133 140
134 #inline c 141 #inline c
135 /** 142 /**
136 * The old version of the interface, which cannot be generated from IDL. 143 * The old version of the interface, which cannot be generated from IDL.
137 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184 144 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184
138 */ 145 */
139 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11" 146 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11"
140 struct PPB_Flash_11 { 147 struct PPB_Flash_11 {
141 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); 148 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
(...skipping 10 matching lines...) Expand all
152 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); 159 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url);
153 int32_t (*Navigate)(PP_Resource request_info, 160 int32_t (*Navigate)(PP_Resource request_info,
154 const char* target, 161 const char* target,
155 bool from_user_action); 162 bool from_user_action);
156 void (*RunMessageLoop)(PP_Instance instance); 163 void (*RunMessageLoop)(PP_Instance instance);
157 void (*QuitMessageLoop)(PP_Instance instance); 164 void (*QuitMessageLoop)(PP_Instance instance);
158 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); 165 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t);
159 struct PP_Var (*GetCommandLineArgs)(PP_Module module); 166 struct PP_Var (*GetCommandLineArgs)(PP_Module module);
160 }; 167 };
161 #endinl 168 #endinl
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppb_flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698