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

Side by Side Diff: third_party/closure_compiler/externs/developer_private.js

Issue 1083573002: Revert https://codereview.chromium.org/1060993003 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** @fileoverview Externs generated from namespace: developerPrivate */ 5 /** @fileoverview Externs generated from namespace: developerPrivate */
6 6
7 /** 7 /**
8 * @const 8 * @const
9 */ 9 */
10 chrome.developerPrivate = {}; 10 chrome.developerPrivate = {};
11 11
12 /** 12 /**
13 * @enum {string} 13 * @enum {string}
14 * @see https://developer.chrome.com/extensions/developerPrivate#type-ItemType
15 */ 14 */
16 chrome.developerPrivate.ItemType = { 15 chrome.developerPrivate.ItemType = {
17 hosted_app: 'hosted_app', 16 hosted_app: 'hosted_app',
18 packaged_app: 'packaged_app', 17 packaged_app: 'packaged_app',
19 legacy_packaged_app: 'legacy_packaged_app', 18 legacy_packaged_app: 'legacy_packaged_app',
20 extension: 'extension', 19 extension: 'extension',
21 theme: 'theme', 20 theme: 'theme',
22 }; 21 };
23 22
24 /** 23 /**
25 * @typedef {{ 24 * @typedef {{
26 * path: string, 25 * path: string,
27 * render_process_id: number, 26 * render_process_id: number,
28 * render_view_id: number, 27 * render_view_id: number,
29 * incognito: boolean, 28 * incognito: boolean,
30 * generatedBackgroundPage: boolean 29 * generatedBackgroundPage: boolean
31 * }} 30 * }}
32 * @see https://developer.chrome.com/extensions/developerPrivate#type-ItemInspec tView
33 */ 31 */
34 var ItemInspectView; 32 var ItemInspectView;
35 33
36 /** 34 /**
37 * @typedef {{ 35 * @typedef {{
38 * extension_id: string, 36 * extension_id: string,
39 * render_process_id: (string|number), 37 * render_process_id: (string|number),
40 * render_view_id: (string|number), 38 * render_view_id: (string|number),
41 * incognito: boolean 39 * incognito: boolean
42 * }} 40 * }}
43 * @see https://developer.chrome.com/extensions/developerPrivate#type-InspectOpt ions
44 */ 41 */
45 var InspectOptions; 42 var InspectOptions;
46 43
47 /** 44 /**
48 * @typedef {{ 45 * @typedef {{
49 * message: string 46 * message: string
50 * }} 47 * }}
51 * @see https://developer.chrome.com/extensions/developerPrivate#type-InstallWar ning
52 */ 48 */
53 var InstallWarning; 49 var InstallWarning;
54 50
55 /** 51 /**
56 * @enum {string} 52 * @enum {string}
57 * @see https://developer.chrome.com/extensions/developerPrivate#type-ExtensionT ype
58 */ 53 */
59 chrome.developerPrivate.ExtensionType = { 54 chrome.developerPrivate.ExtensionType = {
60 HOSTED_APP: 'HOSTED_APP', 55 HOSTED_APP: 'HOSTED_APP',
61 PLATFORM_APP: 'PLATFORM_APP', 56 PLATFORM_APP: 'PLATFORM_APP',
62 LEGACY_PACKAGED_APP: 'LEGACY_PACKAGED_APP', 57 LEGACY_PACKAGED_APP: 'LEGACY_PACKAGED_APP',
63 EXTENSION: 'EXTENSION', 58 EXTENSION: 'EXTENSION',
64 THEME: 'THEME', 59 THEME: 'THEME',
65 SHARED_MODULE: 'SHARED_MODULE', 60 SHARED_MODULE: 'SHARED_MODULE',
66 }; 61 };
67 62
68 /** 63 /**
69 * @enum {string} 64 * @enum {string}
70 * @see https://developer.chrome.com/extensions/developerPrivate#type-Location
71 */ 65 */
72 chrome.developerPrivate.Location = { 66 chrome.developerPrivate.Location = {
73 FROM_STORE: 'FROM_STORE', 67 FROM_STORE: 'FROM_STORE',
74 UNPACKED: 'UNPACKED', 68 UNPACKED: 'UNPACKED',
75 THIRD_PARTY: 'THIRD_PARTY', 69 THIRD_PARTY: 'THIRD_PARTY',
76 UNKNOWN: 'UNKNOWN', 70 UNKNOWN: 'UNKNOWN',
77 }; 71 };
78 72
79 /** 73 /**
80 * @enum {string} 74 * @enum {string}
81 * @see https://developer.chrome.com/extensions/developerPrivate#type-ViewType
82 */ 75 */
83 chrome.developerPrivate.ViewType = { 76 chrome.developerPrivate.ViewType = {
84 APP_WINDOW: 'APP_WINDOW', 77 APP_WINDOW: 'APP_WINDOW',
85 BACKGROUND_CONTENTS: 'BACKGROUND_CONTENTS', 78 BACKGROUND_CONTENTS: 'BACKGROUND_CONTENTS',
86 EXTENSION_BACKGROUND_PAGE: 'EXTENSION_BACKGROUND_PAGE', 79 EXTENSION_BACKGROUND_PAGE: 'EXTENSION_BACKGROUND_PAGE',
87 EXTENSION_DIALOG: 'EXTENSION_DIALOG', 80 EXTENSION_DIALOG: 'EXTENSION_DIALOG',
88 EXTENSION_POPUP: 'EXTENSION_POPUP', 81 EXTENSION_POPUP: 'EXTENSION_POPUP',
89 LAUNCHER_PAGE: 'LAUNCHER_PAGE', 82 LAUNCHER_PAGE: 'LAUNCHER_PAGE',
90 PANEL: 'PANEL', 83 PANEL: 'PANEL',
91 TAB_CONTENTS: 'TAB_CONTENTS', 84 TAB_CONTENTS: 'TAB_CONTENTS',
92 VIRTUAL_KEYBOARD: 'VIRTUAL_KEYBOARD', 85 VIRTUAL_KEYBOARD: 'VIRTUAL_KEYBOARD',
93 }; 86 };
94 87
95 /** 88 /**
96 * @enum {string} 89 * @enum {string}
97 * @see https://developer.chrome.com/extensions/developerPrivate#type-ErrorType
98 */ 90 */
99 chrome.developerPrivate.ErrorType = { 91 chrome.developerPrivate.ErrorType = {
100 MANIFEST: 'MANIFEST', 92 MANIFEST: 'MANIFEST',
101 RUNTIME: 'RUNTIME', 93 RUNTIME: 'RUNTIME',
102 }; 94 };
103 95
104 /** 96 /**
105 * @enum {string} 97 * @enum {string}
106 * @see https://developer.chrome.com/extensions/developerPrivate#type-ErrorLevel
107 */ 98 */
108 chrome.developerPrivate.ErrorLevel = { 99 chrome.developerPrivate.ErrorLevel = {
109 LOG: 'LOG', 100 LOG: 'LOG',
110 WARN: 'WARN', 101 WARN: 'WARN',
111 ERROR: 'ERROR', 102 ERROR: 'ERROR',
112 }; 103 };
113 104
114 /** 105 /**
115 * @enum {string} 106 * @enum {string}
116 * @see https://developer.chrome.com/extensions/developerPrivate#type-ExtensionS tate
117 */ 107 */
118 chrome.developerPrivate.ExtensionState = { 108 chrome.developerPrivate.ExtensionState = {
119 ENABLED: 'ENABLED', 109 ENABLED: 'ENABLED',
120 DISABLED: 'DISABLED', 110 DISABLED: 'DISABLED',
121 TERMINATED: 'TERMINATED', 111 TERMINATED: 'TERMINATED',
122 }; 112 };
123 113
124 /** 114 /**
125 * @typedef {{ 115 * @typedef {{
126 * isEnabled: boolean, 116 * isEnabled: boolean,
127 * isActive: boolean 117 * isActive: boolean
128 * }} 118 * }}
129 * @see https://developer.chrome.com/extensions/developerPrivate#type-AccessModi fier
130 */ 119 */
131 var AccessModifier; 120 var AccessModifier;
132 121
133 /** 122 /**
134 * @typedef {{ 123 * @typedef {{
135 * lineNumber: number, 124 * lineNumber: number,
136 * columnNumber: number, 125 * columnNumber: number,
137 * url: string, 126 * url: string,
138 * functionName: string 127 * functionName: string
139 * }} 128 * }}
140 * @see https://developer.chrome.com/extensions/developerPrivate#type-StackFrame
141 */ 129 */
142 var StackFrame; 130 var StackFrame;
143 131
144 /** 132 /**
145 * @typedef {{ 133 * @typedef {{
146 * type: !chrome.developerPrivate.ErrorType, 134 * type: !chrome.developerPrivate.ErrorType,
147 * extensionId: string, 135 * extensionId: string,
148 * fromIncognito: boolean, 136 * fromIncognito: boolean,
149 * source: string, 137 * source: string,
150 * message: string, 138 * message: string,
151 * manifestKey: string, 139 * manifestKey: string,
152 * manifestSpecific: (string|undefined) 140 * manifestSpecific: (string|undefined)
153 * }} 141 * }}
154 * @see https://developer.chrome.com/extensions/developerPrivate#type-ManifestEr ror
155 */ 142 */
156 var ManifestError; 143 var ManifestError;
157 144
158 /** 145 /**
159 * @typedef {{ 146 * @typedef {{
160 * type: !chrome.developerPrivate.ErrorType, 147 * type: !chrome.developerPrivate.ErrorType,
161 * extensionId: string, 148 * extensionId: string,
162 * fromIncognito: boolean, 149 * fromIncognito: boolean,
163 * source: string, 150 * source: string,
164 * message: string, 151 * message: string,
165 * severity: !chrome.developerPrivate.ErrorLevel, 152 * severity: !chrome.developerPrivate.ErrorLevel,
166 * contextUrl: string, 153 * contextUrl: string,
167 * occurrences: number, 154 * occurrences: number,
168 * renderViewId: number, 155 * renderViewId: number,
169 * renderProcessId: number, 156 * renderProcessId: number,
170 * canInspect: boolean, 157 * canInspect: boolean,
171 * stackTrace: !Array<StackFrame> 158 * stackTrace: !Array<StackFrame>
172 * }} 159 * }}
173 * @see https://developer.chrome.com/extensions/developerPrivate#type-RuntimeErr or
174 */ 160 */
175 var RuntimeError; 161 var RuntimeError;
176 162
177 /** 163 /**
178 * @typedef {{ 164 * @typedef {{
179 * suspiciousInstall: boolean, 165 * suspiciousInstall: boolean,
180 * corruptInstall: boolean, 166 * corruptInstall: boolean,
181 * updateRequired: boolean 167 * updateRequired: boolean
182 * }} 168 * }}
183 * @see https://developer.chrome.com/extensions/developerPrivate#type-DisableRea sons
184 */ 169 */
185 var DisableReasons; 170 var DisableReasons;
186 171
187 /** 172 /**
188 * @typedef {{ 173 * @typedef {{
189 * openInTab: boolean, 174 * openInTab: boolean,
190 * url: string 175 * url: string
191 * }} 176 * }}
192 * @see https://developer.chrome.com/extensions/developerPrivate#type-OptionsPag e
193 */ 177 */
194 var OptionsPage; 178 var OptionsPage;
195 179
196 /** 180 /**
197 * @typedef {{ 181 * @typedef {{
198 * url: string, 182 * url: string,
199 * specified: boolean 183 * specified: boolean
200 * }} 184 * }}
201 * @see https://developer.chrome.com/extensions/developerPrivate#type-HomePage
202 */ 185 */
203 var HomePage; 186 var HomePage;
204 187
205 /** 188 /**
206 * @typedef {{ 189 * @typedef {{
207 * url: string, 190 * url: string,
208 * renderProcessId: number, 191 * renderProcessId: number,
209 * renderViewId: number, 192 * renderViewId: number,
210 * incognito: boolean, 193 * incognito: boolean,
211 * type: !chrome.developerPrivate.ViewType 194 * type: !chrome.developerPrivate.ViewType
212 * }} 195 * }}
213 * @see https://developer.chrome.com/extensions/developerPrivate#type-ExtensionV iew
214 */ 196 */
215 var ExtensionView; 197 var ExtensionView;
216 198
217 /** 199 /**
218 * @typedef {{ 200 * @typedef {{
219 * actionButtonHidden: boolean, 201 * actionButtonHidden: boolean,
220 * blacklistText: (string|undefined), 202 * blacklistText: (string|undefined),
221 * dependentExtensions: !Array<string>, 203 * dependentExtensions: !Array<string>,
222 * description: string, 204 * description: string,
223 * disableReasons: DisableReasons, 205 * disableReasons: DisableReasons,
(...skipping 19 matching lines...) Expand all
243 * runOnAllUrls: AccessModifier, 225 * runOnAllUrls: AccessModifier,
244 * runtimeErrors: !Array<RuntimeError>, 226 * runtimeErrors: !Array<RuntimeError>,
245 * runtimeWarnings: !Array<string>, 227 * runtimeWarnings: !Array<string>,
246 * state: !chrome.developerPrivate.ExtensionState, 228 * state: !chrome.developerPrivate.ExtensionState,
247 * type: !chrome.developerPrivate.ExtensionType, 229 * type: !chrome.developerPrivate.ExtensionType,
248 * updateUrl: string, 230 * updateUrl: string,
249 * userMayModify: boolean, 231 * userMayModify: boolean,
250 * version: string, 232 * version: string,
251 * views: !Array<ExtensionView> 233 * views: !Array<ExtensionView>
252 * }} 234 * }}
253 * @see https://developer.chrome.com/extensions/developerPrivate#type-ExtensionI nfo
254 */ 235 */
255 var ExtensionInfo; 236 var ExtensionInfo;
256 237
257 /** 238 /**
258 * @typedef {{ 239 * @typedef {{
259 * appInfoDialogEnabled: boolean,
260 * canLoadUnpacked: boolean,
261 * inDeveloperMode: boolean,
262 * isIncognitoAvailable: boolean,
263 * isSupervised: boolean
264 * }}
265 * @see https://developer.chrome.com/extensions/developerPrivate#type-ProfileInf o
266 */
267 var ProfileInfo;
268
269 /**
270 * @typedef {{
271 * id: string, 240 * id: string,
272 * name: string, 241 * name: string,
273 * version: string, 242 * version: string,
274 * description: string, 243 * description: string,
275 * may_disable: boolean, 244 * may_disable: boolean,
276 * enabled: boolean, 245 * enabled: boolean,
277 * isApp: boolean, 246 * isApp: boolean,
278 * type: !chrome.developerPrivate.ItemType, 247 * type: !chrome.developerPrivate.ItemType,
279 * allow_activity: boolean, 248 * allow_activity: boolean,
280 * allow_file_access: boolean, 249 * allow_file_access: boolean,
281 * wants_file_access: boolean, 250 * wants_file_access: boolean,
282 * incognito_enabled: boolean, 251 * incognito_enabled: boolean,
283 * is_unpacked: boolean, 252 * is_unpacked: boolean,
284 * allow_reload: boolean, 253 * allow_reload: boolean,
285 * terminated: boolean, 254 * terminated: boolean,
286 * allow_incognito: boolean, 255 * allow_incognito: boolean,
287 * icon_url: string, 256 * icon_url: string,
288 * path: (string|undefined), 257 * path: (string|undefined),
289 * options_url: (string|undefined), 258 * options_url: (string|undefined),
290 * app_launch_url: (string|undefined), 259 * app_launch_url: (string|undefined),
291 * homepage_url: (string|undefined), 260 * homepage_url: (string|undefined),
292 * update_url: (string|undefined), 261 * update_url: (string|undefined),
293 * install_warnings: !Array<InstallWarning>, 262 * install_warnings: !Array<InstallWarning>,
294 * manifest_errors: !Array<*>, 263 * manifest_errors: !Array<*>,
295 * runtime_errors: !Array<*>, 264 * runtime_errors: !Array<*>,
296 * offline_enabled: boolean, 265 * offline_enabled: boolean,
297 * views: !Array<ItemInspectView> 266 * views: !Array<ItemInspectView>
298 * }} 267 * }}
299 * @see https://developer.chrome.com/extensions/developerPrivate#type-ItemInfo
300 */ 268 */
301 var ItemInfo; 269 var ItemInfo;
302 270
303 /** 271 /**
304 * @typedef {{ 272 * @typedef {{
305 * includeDisabled: (boolean|undefined), 273 * includeDisabled: (boolean|undefined),
306 * includeTerminated: (boolean|undefined) 274 * includeTerminated: (boolean|undefined)
307 * }} 275 * }}
308 * @see https://developer.chrome.com/extensions/developerPrivate#type-GetExtensi onsInfoOptions
309 */ 276 */
310 var GetExtensionsInfoOptions; 277 var GetExtensionsInfoOptions;
311 278
312 /** 279 /**
313 * @typedef {{ 280 * @typedef {{
314 * extensionId: string, 281 * extensionId: string,
315 * fileAccess: (boolean|undefined), 282 * fileAccess: (boolean|undefined),
316 * incognitoAccess: (boolean|undefined), 283 * incognitoAccess: (boolean|undefined),
317 * errorCollection: (boolean|undefined), 284 * errorCollection: (boolean|undefined),
318 * runOnAllUrls: (boolean|undefined), 285 * runOnAllUrls: (boolean|undefined),
319 * showActionButton: (boolean|undefined) 286 * showActionButton: (boolean|undefined)
320 * }} 287 * }}
321 * @see https://developer.chrome.com/extensions/developerPrivate#type-ExtensionC onfigurationUpdate
322 */ 288 */
323 var ExtensionConfigurationUpdate; 289 var ExtensionConfigurationUpdate;
324 290
325 /** 291 /**
326 * @typedef {{ 292 * @typedef {{
327 * inDeveloperMode: (boolean|undefined)
328 * }}
329 * @see https://developer.chrome.com/extensions/developerPrivate#type-ProfileCon figurationUpdate
330 */
331 var ProfileConfigurationUpdate;
332
333 /**
334 * @typedef {{
335 * failQuietly: (boolean|undefined) 293 * failQuietly: (boolean|undefined)
336 * }} 294 * }}
337 * @see https://developer.chrome.com/extensions/developerPrivate#type-ReloadOpti ons
338 */ 295 */
339 var ReloadOptions; 296 var ReloadOptions;
340 297
341 /** 298 /**
342 * @typedef {{ 299 * @typedef {{
343 * failQuietly: (boolean|undefined) 300 * failQuietly: (boolean|undefined)
344 * }} 301 * }}
345 * @see https://developer.chrome.com/extensions/developerPrivate#type-LoadUnpack edOptions
346 */ 302 */
347 var LoadUnpackedOptions; 303 var LoadUnpackedOptions;
348 304
349 /** 305 /**
350 * @enum {string} 306 * @enum {string}
351 * @see https://developer.chrome.com/extensions/developerPrivate#type-PackStatus
352 */ 307 */
353 chrome.developerPrivate.PackStatus = { 308 chrome.developerPrivate.PackStatus = {
354 SUCCESS: 'SUCCESS', 309 SUCCESS: 'SUCCESS',
355 ERROR: 'ERROR', 310 ERROR: 'ERROR',
356 WARNING: 'WARNING', 311 WARNING: 'WARNING',
357 }; 312 };
358 313
359 /** 314 /**
360 * @enum {string} 315 * @enum {string}
361 * @see https://developer.chrome.com/extensions/developerPrivate#type-FileType
362 */ 316 */
363 chrome.developerPrivate.FileType = { 317 chrome.developerPrivate.FileType = {
364 LOAD: 'LOAD', 318 LOAD: 'LOAD',
365 PEM: 'PEM', 319 PEM: 'PEM',
366 }; 320 };
367 321
368 /** 322 /**
369 * @enum {string} 323 * @enum {string}
370 * @see https://developer.chrome.com/extensions/developerPrivate#type-SelectType
371 */ 324 */
372 chrome.developerPrivate.SelectType = { 325 chrome.developerPrivate.SelectType = {
373 FILE: 'FILE', 326 FILE: 'FILE',
374 FOLDER: 'FOLDER', 327 FOLDER: 'FOLDER',
375 }; 328 };
376 329
377 /** 330 /**
378 * @enum {string} 331 * @enum {string}
379 * @see https://developer.chrome.com/extensions/developerPrivate#type-EventType
380 */ 332 */
381 chrome.developerPrivate.EventType = { 333 chrome.developerPrivate.EventType = {
382 INSTALLED: 'INSTALLED', 334 INSTALLED: 'INSTALLED',
383 UNINSTALLED: 'UNINSTALLED', 335 UNINSTALLED: 'UNINSTALLED',
384 LOADED: 'LOADED', 336 LOADED: 'LOADED',
385 UNLOADED: 'UNLOADED', 337 UNLOADED: 'UNLOADED',
386 VIEW_REGISTERED: 'VIEW_REGISTERED', 338 VIEW_REGISTERED: 'VIEW_REGISTERED',
387 VIEW_UNREGISTERED: 'VIEW_UNREGISTERED', 339 VIEW_UNREGISTERED: 'VIEW_UNREGISTERED',
388 ERROR_ADDED: 'ERROR_ADDED', 340 ERROR_ADDED: 'ERROR_ADDED',
389 }; 341 };
390 342
391 /** 343 /**
392 * @typedef {{ 344 * @typedef {{
393 * message: string, 345 * message: string,
394 * item_path: string, 346 * item_path: string,
395 * pem_path: string, 347 * pem_path: string,
396 * override_flags: number, 348 * override_flags: number,
397 * status: !chrome.developerPrivate.PackStatus 349 * status: !chrome.developerPrivate.PackStatus
398 * }} 350 * }}
399 * @see https://developer.chrome.com/extensions/developerPrivate#type-PackDirect oryResponse
400 */ 351 */
401 var PackDirectoryResponse; 352 var PackDirectoryResponse;
402 353
403 /** 354 /**
404 * @typedef {{ 355 * @typedef {{
405 * name: string 356 * name: string
406 * }} 357 * }}
407 * @see https://developer.chrome.com/extensions/developerPrivate#type-ProjectInf o
408 */ 358 */
409 var ProjectInfo; 359 var ProjectInfo;
410 360
411 /** 361 /**
412 * @typedef {{ 362 * @typedef {{
413 * event_type: !chrome.developerPrivate.EventType, 363 * event_type: !chrome.developerPrivate.EventType,
414 * item_id: string, 364 * item_id: string,
415 * extensionInfo: (ExtensionInfo|undefined) 365 * extensionInfo: (ExtensionInfo|undefined)
416 * }} 366 * }}
417 * @see https://developer.chrome.com/extensions/developerPrivate#type-EventData
418 */ 367 */
419 var EventData; 368 var EventData;
420 369
421 /** 370 /**
422 * @typedef {{ 371 * @typedef {{
423 * extensionId: string, 372 * extensionId: string,
424 * pathSuffix: string, 373 * pathSuffix: string,
425 * message: string, 374 * message: string,
426 * manifestKey: (string|undefined), 375 * manifestKey: (string|undefined),
427 * manifestSpecific: (string|undefined), 376 * manifestSpecific: (string|undefined),
428 * lineNumber: (number|undefined) 377 * lineNumber: (number|undefined)
429 * }} 378 * }}
430 * @see https://developer.chrome.com/extensions/developerPrivate#type-RequestFil eSourceProperties
431 */ 379 */
432 var RequestFileSourceProperties; 380 var RequestFileSourceProperties;
433 381
434 /** 382 /**
435 * @typedef {{ 383 * @typedef {{
436 * highlight: string, 384 * highlight: string,
437 * beforeHighlight: string, 385 * beforeHighlight: string,
438 * afterHighlight: string, 386 * afterHighlight: string,
439 * title: string, 387 * title: string,
440 * message: string 388 * message: string
441 * }} 389 * }}
442 * @see https://developer.chrome.com/extensions/developerPrivate#type-RequestFil eSourceResponse
443 */ 390 */
444 var RequestFileSourceResponse; 391 var RequestFileSourceResponse;
445 392
446 /** 393 /**
447 * @typedef {{ 394 * @typedef {{
448 * extensionId: (string|undefined), 395 * extensionId: (string|undefined),
449 * renderViewId: number, 396 * renderViewId: number,
450 * renderProcessId: number, 397 * renderProcessId: number,
451 * incognito: (boolean|undefined), 398 * incognito: (boolean|undefined),
452 * url: (string|undefined), 399 * url: (string|undefined),
453 * lineNumber: (number|undefined), 400 * lineNumber: (number|undefined),
454 * columnNumber: (number|undefined) 401 * columnNumber: (number|undefined)
455 * }} 402 * }}
456 * @see https://developer.chrome.com/extensions/developerPrivate#type-OpenDevToo lsProperties
457 */ 403 */
458 var OpenDevToolsProperties; 404 var OpenDevToolsProperties;
459 405
460 /** 406 /**
461 * @typedef {{ 407 * @typedef {{
462 * extensionId: string, 408 * extensionId: string,
463 * errorIds: (!Array<number>|undefined), 409 * errorIds: (!Array<number>|undefined),
464 * type: (!chrome.developerPrivate.ErrorType|undefined) 410 * type: (!chrome.developerPrivate.ErrorType|undefined)
465 * }} 411 * }}
466 * @see https://developer.chrome.com/extensions/developerPrivate#type-DeleteExte nsionErrorsProperties
467 */ 412 */
468 var DeleteExtensionErrorsProperties; 413 var DeleteExtensionErrorsProperties;
469 414
470 /** 415 /**
471 * Runs auto update for extensions and apps immediately. 416 * Runs auto update for extensions and apps immediately.
472 * @param {function(boolean):void=} callback Called with the boolean result, 417 * @param {function(boolean):void=} callback Called with the boolean result,
473 * true if autoUpdate is successful. 418 * true if autoUpdate is successful.
474 * @see https://developer.chrome.com/extensions/developerPrivate#method-autoUpda te
475 */ 419 */
476 chrome.developerPrivate.autoUpdate = function(callback) {}; 420 chrome.developerPrivate.autoUpdate = function(callback) {};
477 421
478 /** 422 /**
479 * Returns information of all the extensions and apps installed. 423 * Returns information of all the extensions and apps installed.
480 * @param {GetExtensionsInfoOptions=} options Options to restrict the items 424 * @param {GetExtensionsInfoOptions=} options Options to restrict the items
481 * returned. 425 * returned.
482 * @param {function(!Array<ExtensionInfo>):void=} callback Called with 426 * @param {function(!Array<ExtensionInfo>):void=} callback Called with
483 * extensions info. 427 * extensions info.
484 * @see https://developer.chrome.com/extensions/developerPrivate#method-getExten sionsInfo
485 */ 428 */
486 chrome.developerPrivate.getExtensionsInfo = function(options, callback) {}; 429 chrome.developerPrivate.getExtensionsInfo = function(options, callback) {};
487 430
488 /** 431 /**
489 * Returns information of a particular extension. 432 * Returns information of a particular extension.
490 * @param {string} id The id of the extension. 433 * @param {string} id The id of the extension.
491 * @param {function(ExtensionInfo):void=} callback Called with the result. 434 * @param {function(ExtensionInfo):void=} callback Called with the result.
492 * @see https://developer.chrome.com/extensions/developerPrivate#method-getExten sionInfo
493 */ 435 */
494 chrome.developerPrivate.getExtensionInfo = function(id, callback) {}; 436 chrome.developerPrivate.getExtensionInfo = function(id, callback) {};
495 437
496 /** 438 /**
497 * Returns information of all the extensions and apps installed. 439 * Returns information of all the extensions and apps installed.
498 * @param {boolean} includeDisabled include disabled items. 440 * @param {boolean} includeDisabled include disabled items.
499 * @param {boolean} includeTerminated include terminated items. 441 * @param {boolean} includeTerminated include terminated items.
500 * @param {function(!Array<ItemInfo>):void} callback Called with items info. 442 * @param {function(!Array<ItemInfo>):void} callback Called with items info.
501 * @deprecated Use getExtensionsInfo 443 * @deprecated Use getExtensionsInfo
502 * @see https://developer.chrome.com/extensions/developerPrivate#method-getItems Info
503 */ 444 */
504 chrome.developerPrivate.getItemsInfo = function(includeDisabled, includeTerminat ed, callback) {}; 445 chrome.developerPrivate.getItemsInfo = function(includeDisabled, includeTerminat ed, callback) {};
505 446
506 /** 447 /**
507 * Returns the current profile's configuration.
508 * @param {function(ProfileInfo):void} callback
509 * @see https://developer.chrome.com/extensions/developerPrivate#method-getProfi leConfiguration
510 */
511 chrome.developerPrivate.getProfileConfiguration = function(callback) {};
512
513 /**
514 * Updates the active profile.
515 * @param {ProfileConfigurationUpdate} update The parameters for updating the
516 * profile's configuration. Any properties omitted from |update| will
517 * not be changed.
518 * @param {function():void=} callback
519 * @see https://developer.chrome.com/extensions/developerPrivate#method-updatePr ofileConfiguration
520 */
521 chrome.developerPrivate.updateProfileConfiguration = function(update, callback) {};
522
523 /**
524 * Opens a permissions dialog. 448 * Opens a permissions dialog.
525 * @param {string} extensionId The id of the extension to show permissions for. 449 * @param {string} extensionId The id of the extension to show permissions for.
526 * @param {function():void=} callback 450 * @param {function():void=} callback
527 * @see https://developer.chrome.com/extensions/developerPrivate#method-showPerm issionsDialog
528 */ 451 */
529 chrome.developerPrivate.showPermissionsDialog = function(extensionId, callback) {}; 452 chrome.developerPrivate.showPermissionsDialog = function(extensionId, callback) {};
530 453
531 /** 454 /**
532 * Reloads a given extension. 455 * Reloads a given extension.
533 * @param {string} extensionId The id of the extension to reload. 456 * @param {string} extensionId The id of the extension to reload.
534 * @param {ReloadOptions=} options Additional configuration parameters. 457 * @param {ReloadOptions=} options Additional configuration parameters.
535 * @param {function():void=} callback 458 * @param {function():void=} callback
536 * @see https://developer.chrome.com/extensions/developerPrivate#method-reload
537 */ 459 */
538 chrome.developerPrivate.reload = function(extensionId, options, callback) {}; 460 chrome.developerPrivate.reload = function(extensionId, options, callback) {};
539 461
540 /** 462 /**
541 * Modifies an extension's current configuration. 463 * Modifies an extension's current configuration.
542 * @param {ExtensionConfigurationUpdate} update The parameters for updating the 464 * @param {ExtensionConfigurationUpdate} update The parameters for updating the
543 * extension's configuration. Any properties omitted from |update| will 465 * extension's configuration. Any properties omitted from |update| will
544 * not be changed. 466 * not be changed.
545 * @param {function():void=} callback 467 * @param {function():void=} callback
546 * @see https://developer.chrome.com/extensions/developerPrivate#method-updateEx tensionConfiguration
547 */ 468 */
548 chrome.developerPrivate.updateExtensionConfiguration = function(update, callback ) {}; 469 chrome.developerPrivate.updateExtensionConfiguration = function(update, callback ) {};
549 470
550 /** 471 /**
551 * Loads a user-selected unpacked item. 472 * Loads a user-selected unpacked item.
552 * @param {LoadUnpackedOptions=} options Additional configuration parameters. 473 * @param {LoadUnpackedOptions=} options Additional configuration parameters.
553 * @param {function():void=} callback 474 * @param {function():void=} callback
554 * @see https://developer.chrome.com/extensions/developerPrivate#method-loadUnpa cked
555 */ 475 */
556 chrome.developerPrivate.loadUnpacked = function(options, callback) {}; 476 chrome.developerPrivate.loadUnpacked = function(options, callback) {};
557 477
558 /** 478 /**
559 * Loads an extension / app. 479 * Loads an extension / app.
560 * @param {Object} directory The directory to load the extension from. 480 * @param {Object} directory The directory to load the extension from.
561 * @param {function(string):void} callback 481 * @param {function(string):void} callback
562 * @see https://developer.chrome.com/extensions/developerPrivate#method-loadDire ctory
563 */ 482 */
564 chrome.developerPrivate.loadDirectory = function(directory, callback) {}; 483 chrome.developerPrivate.loadDirectory = function(directory, callback) {};
565 484
566 /** 485 /**
567 * Open Dialog to browse to an entry. 486 * Open Dialog to browse to an entry.
568 * @param {!chrome.developerPrivate.SelectType} selectType Select a file or a 487 * @param {!chrome.developerPrivate.SelectType} selectType Select a file or a
569 * folder. 488 * folder.
570 * @param {!chrome.developerPrivate.FileType} fileType Required file type. For 489 * @param {!chrome.developerPrivate.FileType} fileType Required file type. For
571 * example, pem type is for private key and load type is for an unpacked 490 * example, pem type is for private key and load type is for an unpacked
572 * item. 491 * item.
573 * @param {function(string):void} callback called with selected item's path. 492 * @param {function(string):void} callback called with selected item's path.
574 * @see https://developer.chrome.com/extensions/developerPrivate#method-choosePa th
575 */ 493 */
576 chrome.developerPrivate.choosePath = function(selectType, fileType, callback) {} ; 494 chrome.developerPrivate.choosePath = function(selectType, fileType, callback) {} ;
577 495
578 /** 496 /**
579 * Pack an extension. 497 * Pack an extension.
580 * @param {string} path 498 * @param {string} path
581 * @param {string=} privateKeyPath The path of the private key, if one is given. 499 * @param {string=} privateKeyPath The path of the private key, if one is given.
582 * @param {number=} flags Special flags to apply to the loading process, if any. 500 * @param {number=} flags Special flags to apply to the loading process, if any.
583 * @param {function(PackDirectoryResponse):void=} callback called with the 501 * @param {function(PackDirectoryResponse):void=} callback called with the
584 * success result string. 502 * success result string.
585 * @see https://developer.chrome.com/extensions/developerPrivate#method-packDire ctory
586 */ 503 */
587 chrome.developerPrivate.packDirectory = function(path, privateKeyPath, flags, ca llback) {}; 504 chrome.developerPrivate.packDirectory = function(path, privateKeyPath, flags, ca llback) {};
588 505
589 /** 506 /**
590 * Returns true if the profile is managed. 507 * Returns true if the profile is managed.
591 * @param {function(boolean):void} callback 508 * @param {function(boolean):void} callback
592 * @see https://developer.chrome.com/extensions/developerPrivate#method-isProfil eManaged
593 */ 509 */
594 chrome.developerPrivate.isProfileManaged = function(callback) {}; 510 chrome.developerPrivate.isProfileManaged = function(callback) {};
595 511
596 /** 512 /**
597 * Reads and returns the contents of a file related to an extension which caused 513 * Reads and returns the contents of a file related to an extension which caused
598 * an error. 514 * an error.
599 * @param {RequestFileSourceProperties} properties 515 * @param {RequestFileSourceProperties} properties
600 * @param {function(RequestFileSourceResponse):void} callback 516 * @param {function(RequestFileSourceResponse):void} callback
601 * @see https://developer.chrome.com/extensions/developerPrivate#method-requestF ileSource
602 */ 517 */
603 chrome.developerPrivate.requestFileSource = function(properties, callback) {}; 518 chrome.developerPrivate.requestFileSource = function(properties, callback) {};
604 519
605 /** 520 /**
606 * Open the developer tools to focus on a particular error. 521 * Open the developer tools to focus on a particular error.
607 * @param {OpenDevToolsProperties} properties 522 * @param {OpenDevToolsProperties} properties
608 * @param {function():void=} callback 523 * @param {function():void=} callback
609 * @see https://developer.chrome.com/extensions/developerPrivate#method-openDevT ools
610 */ 524 */
611 chrome.developerPrivate.openDevTools = function(properties, callback) {}; 525 chrome.developerPrivate.openDevTools = function(properties, callback) {};
612 526
613 /** 527 /**
614 * Delete reported extension erors. 528 * Delete reported extension erors.
615 * @param {DeleteExtensionErrorsProperties} properties 529 * @param {DeleteExtensionErrorsProperties} properties
616 * @param {function():void=} callback 530 * @param {function():void=} callback
617 * @see https://developer.chrome.com/extensions/developerPrivate#method-deleteEx tensionErrors
618 */ 531 */
619 chrome.developerPrivate.deleteExtensionErrors = function(properties, callback) { }; 532 chrome.developerPrivate.deleteExtensionErrors = function(properties, callback) { };
620 533
621 /** 534 /**
622 * @param {string} id 535 * @param {string} id
623 * @param {boolean} enabled 536 * @param {boolean} enabled
624 * @param {function():void=} callback 537 * @param {function():void=} callback
625 * @deprecated Use management.setEnabled 538 * @deprecated Use management.setEnabled
626 * @see https://developer.chrome.com/extensions/developerPrivate#method-enable
627 */ 539 */
628 chrome.developerPrivate.enable = function(id, enabled, callback) {}; 540 chrome.developerPrivate.enable = function(id, enabled, callback) {};
629 541
630 /** 542 /**
631 * @param {string} extensionId 543 * @param {string} extensionId
632 * @param {boolean} allow 544 * @param {boolean} allow
633 * @param {function():void=} callback 545 * @param {function():void=} callback
634 * @deprecated Use updateExtensionConfiguration 546 * @deprecated Use updateExtensionConfiguration
635 * @see https://developer.chrome.com/extensions/developerPrivate#method-allowInc ognito
636 */ 547 */
637 chrome.developerPrivate.allowIncognito = function(extensionId, allow, callback) {}; 548 chrome.developerPrivate.allowIncognito = function(extensionId, allow, callback) {};
638 549
639 /** 550 /**
640 * @param {string} extensionId 551 * @param {string} extensionId
641 * @param {boolean} allow 552 * @param {boolean} allow
642 * @param {function():void=} callback 553 * @param {function():void=} callback
643 * @deprecated Use updateExtensionConfiguration 554 * @deprecated Use updateExtensionConfiguration
644 * @see https://developer.chrome.com/extensions/developerPrivate#method-allowFil eAccess
645 */ 555 */
646 chrome.developerPrivate.allowFileAccess = function(extensionId, allow, callback) {}; 556 chrome.developerPrivate.allowFileAccess = function(extensionId, allow, callback) {};
647 557
648 /** 558 /**
649 * @param {InspectOptions} options 559 * @param {InspectOptions} options
650 * @param {function():void=} callback 560 * @param {function():void=} callback
651 * @deprecated Use openDevTools 561 * @deprecated Use openDevTools
652 * @see https://developer.chrome.com/extensions/developerPrivate#method-inspect
653 */ 562 */
654 chrome.developerPrivate.inspect = function(options, callback) {}; 563 chrome.developerPrivate.inspect = function(options, callback) {};
655 564
656 /** 565 /** @type {!ChromeEvent} */
657 * Fired when a item state is changed.
658 * @type {!ChromeEvent}
659 * @see https://developer.chrome.com/extensions/developerPrivate#event-onItemSta teChanged
660 */
661 chrome.developerPrivate.onItemStateChanged; 566 chrome.developerPrivate.onItemStateChanged;
OLDNEW
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698