Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // Note: hand-modified to change Array to !Array in ItemInfo typedef, and add | 7 // Note: hand-modified to change Array to !Array in ItemInfo typedef, and add |
| 8 // typedef {string} for idl enums. | 8 // enum defintiions. |
|
Dan Beam
2015/03/03 18:07:58
definitions
Devlin
2015/03/03 23:58:00
Done.
| |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * @typedef {string} | 11 * @typedef {string} |
| 12 */ | 12 */ |
| 13 var ItemType; | 13 var ItemType; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * @typedef {{ | 16 * @typedef {{ |
| 17 * path: string, | 17 * path: string, |
| 18 * render_process_id: number, | 18 * render_process_id: number, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 var InspectOptions; | 75 var InspectOptions; |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * @typedef {{ | 78 * @typedef {{ |
| 79 * failQuietly: boolean | 79 * failQuietly: boolean |
| 80 * }} | 80 * }} |
| 81 */ | 81 */ |
| 82 var ReloadOptions; | 82 var ReloadOptions; |
| 83 | 83 |
| 84 /** | 84 /** |
| 85 * @typedef {string} | 85 * @enum {string} |
| 86 */ | 86 */ |
| 87 var PackStatus; | 87 chrome.developerPrivate.PackStatus = { |
| 88 SUCCESS: 'SUCCESS', | |
| 89 ERROR: 'ERROR', | |
| 90 WARNING: 'WARNING', | |
| 91 }; | |
| 88 | 92 |
| 89 /** | 93 /** |
| 90 * @typedef {string} | 94 * @enum {string} |
| 91 */ | 95 */ |
| 92 var FileType; | 96 chrome.developerPrivate.FileType = { |
| 97 LOAD: 'LOAD', | |
| 98 PEM: 'PEM', | |
| 99 }; | |
| 93 | 100 |
| 94 /** | 101 /** |
| 95 * @typedef {string} | 102 * @enum {string} |
| 96 */ | 103 */ |
| 97 var SelectType; | 104 chrome.developerPrivate.SelectType = { |
| 105 FILE: 'FILE', | |
| 106 FOLDER: 'FOLDER', | |
| 107 }; | |
| 98 | 108 |
| 99 /** | 109 /** |
| 100 * @typedef {string} | 110 * @enum {string} |
| 101 */ | 111 */ |
| 102 var EventType; | 112 chrome.developerPrivate.EventType = { |
| 113 INSTALLED: 'INSTALLED', | |
| 114 UNINSTALLED: 'UNINSTALLED', | |
| 115 LOADED: 'LOADED', | |
| 116 UNLOADED: 'UNLOADED', | |
| 117 // New window / view opened. | |
| 118 VIEW_REGISTERED: 'VIEW_REGISTERED', | |
| 119 // window / view closed. | |
| 120 VIEW_UNREGISTERED: 'VIEW_UNREGISTERED', | |
| 121 ERROR_ADDED: 'ERROR_ADDED', | |
| 122 } | |
| 103 | 123 |
| 104 /** | 124 /** |
| 105 * @typedef {{ | 125 * @typedef {{ |
| 106 * message: string, | 126 * message: string, |
| 107 * item_path: string, | 127 * item_path: string, |
| 108 * pem_path: string, | 128 * pem_path: string, |
| 109 * override_flags: number, | 129 * override_flags: number, |
| 110 * status: PackStatus | 130 * status: chrome.developerPrivate.PackStatus |
| 111 * }} | 131 * }} |
| 112 */ | 132 */ |
| 113 var PackDirectoryResponse; | 133 var PackDirectoryResponse; |
| 114 | 134 |
| 115 /** | 135 /** |
| 116 * @typedef {{ | 136 * @typedef {{ |
| 117 * name: string | 137 * name: string |
| 118 * }} | 138 * }} |
| 119 */ | 139 */ |
| 120 var ProjectInfo; | 140 var ProjectInfo; |
| 121 | 141 |
| 122 /** | 142 /** |
| 123 * @typedef {{ | 143 * @typedef {{ |
| 124 * event_type: EventType, | 144 * event_type: chrome.developerPrivate.EventType, |
| 125 * item_id: string | 145 * item_id: string |
| 126 * }} | 146 * }} |
| 127 */ | 147 */ |
| 128 var EventData; | 148 var EventData; |
| 129 | 149 |
| 130 /** | 150 /** |
| 131 * @typedef {{ | 151 * @typedef {{ |
| 132 * extensionId: string, | 152 * extensionId: string, |
| 133 * pathSuffix: string, | 153 * pathSuffix: string, |
| 134 * message: string, | 154 * message: string, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 | 257 |
| 238 /** | 258 /** |
| 239 * Loads an extension / app. | 259 * Loads an extension / app. |
| 240 * @param {Object} directory The directory to load the extension from. | 260 * @param {Object} directory The directory to load the extension from. |
| 241 * @param {Function} callback | 261 * @param {Function} callback |
| 242 */ | 262 */ |
| 243 chrome.developerPrivate.loadDirectory = function(directory, callback) {}; | 263 chrome.developerPrivate.loadDirectory = function(directory, callback) {}; |
| 244 | 264 |
| 245 /** | 265 /** |
| 246 * Open Dialog to browse to an entry. | 266 * Open Dialog to browse to an entry. |
| 247 * @param {SelectType} selectType Select a file or a folder. | 267 * @param {chrome.developerPrivate.SelectType} selectType |
| 248 * @param {FileType} fileType Required file type. For example, pem type is for | 268 * Select a file or a folder. |
| 269 * @param {chrome.developerPrivate.FileType} fileType | |
| 270 * Required file type. For example, pem type is for | |
| 249 * private key and load type is for an unpacked item. | 271 * private key and load type is for an unpacked item. |
| 250 * @param {Function} callback called with selected item's path. | 272 * @param {Function} callback called with selected item's path. |
| 251 */ | 273 */ |
| 252 chrome.developerPrivate.choosePath = function(selectType, fileType, callback) {} ; | 274 chrome.developerPrivate.choosePath = function(selectType, fileType, callback) {} ; |
| 253 | 275 |
| 254 /** | 276 /** |
| 255 * Pack an extension. | 277 * Pack an extension. |
| 256 * @param {string} path | 278 * @param {string} path |
| 257 * @param {string=} privateKeyPath The path of the private key, if one is | 279 * @param {string=} privateKeyPath The path of the private key, if one is |
| 258 * given. | 280 * given. |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 277 chrome.developerPrivate.requestFileSource = function(properties, callback) {}; | 299 chrome.developerPrivate.requestFileSource = function(properties, callback) {}; |
| 278 | 300 |
| 279 /** | 301 /** |
| 280 * Open the developer tools to focus on a particular error. | 302 * Open the developer tools to focus on a particular error. |
| 281 * @param {OpenDevToolsProperties} properties | 303 * @param {OpenDevToolsProperties} properties |
| 282 */ | 304 */ |
| 283 chrome.developerPrivate.openDevTools = function(properties) {}; | 305 chrome.developerPrivate.openDevTools = function(properties) {}; |
| 284 | 306 |
| 285 /** @type {!ChromeEvent} */ | 307 /** @type {!ChromeEvent} */ |
| 286 chrome.developerPrivate.onItemStateChanged; | 308 chrome.developerPrivate.onItemStateChanged; |
| OLD | NEW |