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

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

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

Powered by Google App Engine
This is Rietveld 408576698