Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** @fileoverview Externs generated from namespace: developerPrivate */ | |
|
Tyler Breisacher (Chromium)
2015/02/25 01:05:36
It would be ideal to just not check in generated f
| |
| 6 | |
| 7 /** | |
| 8 * @typedef {{ | |
| 9 * path: string, | |
| 10 * render_process_id: number, | |
| 11 * render_view_id: number, | |
| 12 * incognito: boolean, | |
| 13 * generatedBackgroundPage: boolean | |
| 14 * }} | |
| 15 */ | |
| 16 var ItemInspectView; | |
| 17 | |
| 18 /** | |
| 19 * @typedef {{ | |
| 20 * message: string | |
| 21 * }} | |
| 22 */ | |
| 23 var InstallWarning; | |
| 24 | |
| 25 /** | |
| 26 * @typedef {{ | |
| 27 * id: string, | |
| 28 * name: string, | |
| 29 * version: string, | |
| 30 * description: string, | |
| 31 * may_disable: boolean, | |
| 32 * enabled: boolean, | |
| 33 * disabled_reason: (string|undefined), | |
| 34 * isApp: boolean, | |
| 35 * type: ItemType, | |
| 36 * allow_activity: boolean, | |
| 37 * allow_file_access: boolean, | |
| 38 * wants_file_access: boolean, | |
| 39 * incognito_enabled: boolean, | |
| 40 * is_unpacked: boolean, | |
| 41 * allow_reload: boolean, | |
| 42 * terminated: boolean, | |
| 43 * allow_incognito: boolean, | |
| 44 * icon_url: string, | |
| 45 * path: (string|undefined), | |
| 46 * options_url: (string|undefined), | |
| 47 * app_launch_url: (string|undefined), | |
| 48 * homepage_url: (string|undefined), | |
| 49 * update_url: (string|undefined), | |
| 50 * install_warnings: Array, | |
|
Tyler Breisacher (Chromium)
2015/02/25 01:05:37
this is actually "Array or null" -- maybe the gene
Devlin
2015/02/25 16:58:54
Ah, yeah, this should be !Array, since these aren'
| |
| 51 * manifest_errors: Array, | |
| 52 * runtime_errors: Array, | |
| 53 * offline_enabled: boolean, | |
| 54 * views: Array | |
| 55 * }} | |
| 56 */ | |
| 57 var ItemInfo; | |
| 58 | |
| 59 /** | |
| 60 * @typedef {{ | |
| 61 * extension_id: string, | |
| 62 * render_process_id: string, | |
| 63 * render_view_id: string, | |
| 64 * incognito: boolean | |
| 65 * }} | |
| 66 */ | |
| 67 var InspectOptions; | |
| 68 | |
| 69 /** | |
| 70 * @typedef {{ | |
| 71 * message: string, | |
| 72 * item_path: string, | |
| 73 * pem_path: string, | |
| 74 * override_flags: number, | |
| 75 * status: PackStatus | |
| 76 * }} | |
| 77 */ | |
| 78 var PackDirectoryResponse; | |
| 79 | |
| 80 /** | |
| 81 * @typedef {{ | |
| 82 * name: string | |
| 83 * }} | |
| 84 */ | |
| 85 var ProjectInfo; | |
| 86 | |
| 87 /** | |
| 88 * @typedef {{ | |
| 89 * event_type: EventType, | |
| 90 * item_id: string | |
| 91 * }} | |
| 92 */ | |
| 93 var EventData; | |
| 94 | |
| 95 /** | |
| 96 * @const | |
| 97 */ | |
| 98 chrome.developerPrivate = {}; | |
| 99 | |
| 100 /** | |
| 101 * Runs auto update for extensions and apps immediately. | |
| 102 * @param {Function} callback Called with the boolean result, true if | |
| 103 * autoUpdate is successful. | |
| 104 */ | |
| 105 chrome.developerPrivate.autoUpdate = function(callback) {}; | |
| 106 | |
| 107 /** | |
| 108 * Returns information of all the extensions and apps installed. | |
| 109 * @param {boolean} include_disabled include disabled items. | |
| 110 * @param {boolean} include_terminated include terminated items. | |
| 111 * @param {Function} callback Called with items info. | |
| 112 */ | |
| 113 chrome.developerPrivate.getItemsInfo = function(include_disabled, include_termin ated, callback) {}; | |
| 114 | |
| 115 /** | |
| 116 * Opens a permissions dialog for given |itemId|. | |
| 117 * @param {string} itemId | |
| 118 * @param {Function=} callback | |
|
Tyler Breisacher (Chromium)
2015/02/25 01:05:36
Same here, it's strange for this to be both nullab
Devlin
2015/02/25 16:58:54
Weird, absolutely, but also actually accurate. Th
| |
| 119 */ | |
| 120 chrome.developerPrivate.showPermissionsDialog = function(itemId, callback) {}; | |
| 121 | |
| 122 /** | |
| 123 * Opens an inspect window for given |options| | |
| 124 * @param {InspectOptions} options | |
| 125 * @param {Function=} callback | |
| 126 */ | |
| 127 chrome.developerPrivate.inspect = function(options, callback) {}; | |
| 128 | |
| 129 /** | |
| 130 * Enable / Disable file access for a given |item_id| | |
| 131 * @param {string} item_id | |
| 132 * @param {boolean} allow | |
| 133 * @param {Function=} callback | |
| 134 */ | |
| 135 chrome.developerPrivate.allowFileAccess = function(item_id, allow, callback) {}; | |
| 136 | |
| 137 /** | |
| 138 * Reloads a given item with |itemId|. | |
| 139 * @param {string} itemId | |
| 140 * @param {Function=} callback | |
| 141 */ | |
| 142 chrome.developerPrivate.reload = function(itemId, callback) {}; | |
| 143 | |
| 144 /** | |
| 145 * Enable / Disable a given item with id |itemId|. | |
| 146 * @param {string} itemId | |
| 147 * @param {boolean} enable | |
| 148 * @param {Function=} callback | |
| 149 */ | |
| 150 chrome.developerPrivate.enable = function(itemId, enable, callback) {}; | |
| 151 | |
| 152 /** | |
| 153 * Allow / Disallow item with |item_id| in incognito mode. | |
| 154 * @param {string} item_id | |
| 155 * @param {boolean} allow | |
| 156 * @param {Function} callback | |
| 157 */ | |
| 158 chrome.developerPrivate.allowIncognito = function(item_id, allow, callback) {}; | |
| 159 | |
| 160 /** | |
| 161 * Load a user selected unpacked item | |
| 162 * @param {Function=} callback | |
| 163 */ | |
| 164 chrome.developerPrivate.loadUnpacked = function(callback) {}; | |
| 165 | |
| 166 /** | |
| 167 * Loads an extension / app from a given |directory| | |
| 168 * @param {Object} directory | |
| 169 * @param {Function} callback | |
| 170 */ | |
| 171 chrome.developerPrivate.loadDirectory = function(directory, callback) {}; | |
| 172 | |
| 173 /** | |
| 174 * Open Dialog to browse to an entry. | |
| 175 * @param {SelectType} select_type Select a file or a folder. | |
| 176 * @param {FileType} file_type Required file type. For Example pem type is for | |
| 177 * private key and load type is for an unpacked item. | |
| 178 * @param {Function} callback called with selected item's path. | |
| 179 */ | |
| 180 chrome.developerPrivate.choosePath = function(select_type, file_type, callback) {}; | |
| 181 | |
| 182 /** | |
| 183 * Pack an item with given |path| and |private_key_path| | |
| 184 * @param {string} path | |
| 185 * @param {string} private_key_path | |
| 186 * @param {number} flags | |
| 187 * @param {Function} callback called with the success result string. | |
| 188 */ | |
| 189 chrome.developerPrivate.packDirectory = function(path, private_key_path, flags, callback) {}; | |
| 190 | |
| 191 /** | |
| 192 * Returns true if the profile is managed. | |
| 193 * @param {Function} callback | |
| 194 */ | |
| 195 chrome.developerPrivate.isProfileManaged = function(callback) {}; | |
| 196 | |
| 197 /** @type {!ChromeEvent} */ | |
| 198 chrome.developerPrivate.onItemStateChanged; | |
|
Devlin
2015/02/25 01:01:42
This file omits two functions which take arguments
| |
| OLD | NEW |