| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 | |
| 5 | |
| 6 /** @interface */ | 4 /** @interface */ |
| 7 function InspectorFrontendHostAPI() | 5 function InspectorFrontendHostAPI() { |
| 8 { | |
| 9 } | 6 } |
| 10 window.InspectorFrontendHostAPI = InspectorFrontendHostAPI; | 7 window.InspectorFrontendHostAPI = InspectorFrontendHostAPI; |
| 11 /** @typedef | 8 /** @typedef |
| 12 {{ | 9 {{ |
| 13 type: string, | 10 type: string, |
| 14 id: (number|undefined), | 11 id: (number|undefined), |
| 15 label: (string|undefined), | 12 label: (string|undefined), |
| 16 enabled: (boolean|undefined), | 13 enabled: (boolean|undefined), |
| 17 checked: (boolean|undefined), | 14 checked: (boolean|undefined), |
| 18 subItems: (!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>|undefine
d) | 15 subItems: (!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>|undefine
d) |
| 19 }} */ | 16 }} */ |
| 20 InspectorFrontendHostAPI.ContextMenuDescriptor; | 17 InspectorFrontendHostAPI.ContextMenuDescriptor; |
| 21 | 18 |
| 22 /** @typedef | 19 /** @typedef |
| 23 {{ | 20 {{ |
| 24 statusCode: number, | 21 statusCode: number, |
| 25 headers: (!Object.<string, string>|undefined) | 22 headers: (!Object.<string, string>|undefined) |
| 26 }} */ | 23 }} */ |
| 27 InspectorFrontendHostAPI.LoadNetworkResourceResult; | 24 InspectorFrontendHostAPI.LoadNetworkResourceResult; |
| 28 | 25 |
| 29 /** @enum {symbol} */ | 26 /** @enum {symbol} */ |
| 30 InspectorFrontendHostAPI.Events = { | 27 InspectorFrontendHostAPI.Events = { |
| 31 AddExtensions: Symbol("addExtensions"), | 28 AddExtensions: Symbol('addExtensions'), |
| 32 AppendedToURL: Symbol("appendedToURL"), | 29 AppendedToURL: Symbol('appendedToURL'), |
| 33 CanceledSaveURL: Symbol("canceledSaveURL"), | 30 CanceledSaveURL: Symbol('canceledSaveURL'), |
| 34 ContextMenuCleared: Symbol("contextMenuCleared"), | 31 ContextMenuCleared: Symbol('contextMenuCleared'), |
| 35 ContextMenuItemSelected: Symbol("contextMenuItemSelected"), | 32 ContextMenuItemSelected: Symbol('contextMenuItemSelected'), |
| 36 DeviceCountUpdated: Symbol("deviceCountUpdated"), | 33 DeviceCountUpdated: Symbol('deviceCountUpdated'), |
| 37 DevicesDiscoveryConfigChanged: Symbol("devicesDiscoveryConfigChanged"), | 34 DevicesDiscoveryConfigChanged: Symbol('devicesDiscoveryConfigChanged'), |
| 38 DevicesPortForwardingStatusChanged: Symbol("devicesPortForwardingStatusChang
ed"), | 35 DevicesPortForwardingStatusChanged: Symbol('devicesPortForwardingStatusChanged
'), |
| 39 DevicesUpdated: Symbol("devicesUpdated"), | 36 DevicesUpdated: Symbol('devicesUpdated'), |
| 40 DispatchMessage: Symbol("dispatchMessage"), | 37 DispatchMessage: Symbol('dispatchMessage'), |
| 41 DispatchMessageChunk: Symbol("dispatchMessageChunk"), | 38 DispatchMessageChunk: Symbol('dispatchMessageChunk'), |
| 42 EnterInspectElementMode: Symbol("enterInspectElementMode"), | 39 EnterInspectElementMode: Symbol('enterInspectElementMode'), |
| 43 EvaluateForTestInFrontend: Symbol("evaluateForTestInFrontend"), | 40 EvaluateForTestInFrontend: Symbol('evaluateForTestInFrontend'), |
| 44 FileSystemsLoaded: Symbol("fileSystemsLoaded"), | 41 FileSystemsLoaded: Symbol('fileSystemsLoaded'), |
| 45 FileSystemRemoved: Symbol("fileSystemRemoved"), | 42 FileSystemRemoved: Symbol('fileSystemRemoved'), |
| 46 FileSystemAdded: Symbol("fileSystemAdded"), | 43 FileSystemAdded: Symbol('fileSystemAdded'), |
| 47 FileSystemFilesChanged: Symbol("fileSystemFilesChanged"), | 44 FileSystemFilesChanged: Symbol('fileSystemFilesChanged'), |
| 48 IndexingTotalWorkCalculated: Symbol("indexingTotalWorkCalculated"), | 45 IndexingTotalWorkCalculated: Symbol('indexingTotalWorkCalculated'), |
| 49 IndexingWorked: Symbol("indexingWorked"), | 46 IndexingWorked: Symbol('indexingWorked'), |
| 50 IndexingDone: Symbol("indexingDone"), | 47 IndexingDone: Symbol('indexingDone'), |
| 51 KeyEventUnhandled: Symbol("keyEventUnhandled"), | 48 KeyEventUnhandled: Symbol('keyEventUnhandled'), |
| 52 ReloadInspectedPage: Symbol("reloadInspectedPage"), | 49 ReloadInspectedPage: Symbol('reloadInspectedPage'), |
| 53 RevealSourceLine: Symbol("revealSourceLine"), | 50 RevealSourceLine: Symbol('revealSourceLine'), |
| 54 SavedURL: Symbol("savedURL"), | 51 SavedURL: Symbol('savedURL'), |
| 55 SearchCompleted: Symbol("searchCompleted"), | 52 SearchCompleted: Symbol('searchCompleted'), |
| 56 SetInspectedTabId: Symbol("setInspectedTabId"), | 53 SetInspectedTabId: Symbol('setInspectedTabId'), |
| 57 SetUseSoftMenu: Symbol("setUseSoftMenu"), | 54 SetUseSoftMenu: Symbol('setUseSoftMenu'), |
| 58 ShowPanel: Symbol("showPanel") | 55 ShowPanel: Symbol('showPanel') |
| 59 }; | 56 }; |
| 60 | 57 |
| 61 InspectorFrontendHostAPI.EventDescriptors = [ | 58 InspectorFrontendHostAPI.EventDescriptors = [ |
| 62 [InspectorFrontendHostAPI.Events.AddExtensions, "addExtensions", ["extension
s"]], | 59 [InspectorFrontendHostAPI.Events.AddExtensions, 'addExtensions', ['extensions'
]], |
| 63 [InspectorFrontendHostAPI.Events.AppendedToURL, "appendedToURL", ["url"]], | 60 [InspectorFrontendHostAPI.Events.AppendedToURL, 'appendedToURL', ['url']], |
| 64 [InspectorFrontendHostAPI.Events.CanceledSaveURL, "canceledSaveURL", ["url"]
], | 61 [InspectorFrontendHostAPI.Events.CanceledSaveURL, 'canceledSaveURL', ['url']], |
| 65 [InspectorFrontendHostAPI.Events.ContextMenuCleared, "contextMenuCleared", [
]], | 62 [InspectorFrontendHostAPI.Events.ContextMenuCleared, 'contextMenuCleared', []]
, |
| 66 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, "contextMenuItemSe
lected", ["id"]], | 63 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, 'contextMenuItemSele
cted', ['id']], |
| 67 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, "deviceCountUpdated", [
"count"]], | 64 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, 'deviceCountUpdated', ['c
ount']], |
| 68 [InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, "devicesDisc
overyConfigChanged", ["discoverUsbDevices", "portForwardingEnabled", "portForwar
dingConfig"]], | 65 [ |
| 69 [InspectorFrontendHostAPI.Events.DevicesPortForwardingStatusChanged, "device
sPortForwardingStatusChanged", ["status"]], | 66 InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, 'devicesDisco
veryConfigChanged', |
| 70 [InspectorFrontendHostAPI.Events.DevicesUpdated, "devicesUpdated", ["devices
"]], | 67 ['discoverUsbDevices', 'portForwardingEnabled', 'portForwardingConfig'] |
| 71 [InspectorFrontendHostAPI.Events.DispatchMessage, "dispatchMessage", ["messa
geObject"]], | 68 ], |
| 72 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, "dispatchMessageChunk
", ["messageChunk", "messageSize"]], | 69 [ |
| 73 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, "enterInspectEleme
ntMode", []], | 70 InspectorFrontendHostAPI.Events.DevicesPortForwardingStatusChanged, 'devices
PortForwardingStatusChanged', ['status'] |
| 74 [InspectorFrontendHostAPI.Events.EvaluateForTestInFrontend, "evaluateForTest
InFrontend", ["callId", "script"]], | 71 ], |
| 75 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, "fileSystemsLoaded", ["f
ileSystems"]], | 72 [InspectorFrontendHostAPI.Events.DevicesUpdated, 'devicesUpdated', ['devices']
], |
| 76 [InspectorFrontendHostAPI.Events.FileSystemRemoved, "fileSystemRemoved", ["f
ileSystemPath"]], | 73 [InspectorFrontendHostAPI.Events.DispatchMessage, 'dispatchMessage', ['message
Object']], |
| 77 [InspectorFrontendHostAPI.Events.FileSystemAdded, "fileSystemAdded", ["error
Message", "fileSystem"]], | 74 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, 'dispatchMessageChunk',
['messageChunk', 'messageSize']], |
| 78 [InspectorFrontendHostAPI.Events.FileSystemFilesChanged, "fileSystemFilesCha
nged", ["paths"]], | 75 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, 'enterInspectElement
Mode', []], |
| 79 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, "indexingTotal
WorkCalculated", ["requestId", "fileSystemPath", "totalWork"]], | 76 [InspectorFrontendHostAPI.Events.EvaluateForTestInFrontend, 'evaluateForTestIn
Frontend', ['callId', 'script']], |
| 80 [InspectorFrontendHostAPI.Events.IndexingWorked, "indexingWorked", ["request
Id", "fileSystemPath", "worked"]], | 77 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, 'fileSystemsLoaded', ['fil
eSystems']], |
| 81 [InspectorFrontendHostAPI.Events.IndexingDone, "indexingDone", ["requestId",
"fileSystemPath"]], | 78 [InspectorFrontendHostAPI.Events.FileSystemRemoved, 'fileSystemRemoved', ['fil
eSystemPath']], |
| 82 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, "keyEventUnhandled", ["e
vent"]], | 79 [InspectorFrontendHostAPI.Events.FileSystemAdded, 'fileSystemAdded', ['errorMe
ssage', 'fileSystem']], |
| 83 [InspectorFrontendHostAPI.Events.ReloadInspectedPage, "reloadInspectedPage",
["hard"]], | 80 [InspectorFrontendHostAPI.Events.FileSystemFilesChanged, 'fileSystemFilesChang
ed', ['paths']], |
| 84 [InspectorFrontendHostAPI.Events.RevealSourceLine, "revealSourceLine", ["url
", "lineNumber", "columnNumber"]], | 81 [ |
| 85 [InspectorFrontendHostAPI.Events.SavedURL, "savedURL", ["url"]], | 82 InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, 'indexingTotalW
orkCalculated', |
| 86 [InspectorFrontendHostAPI.Events.SearchCompleted, "searchCompleted", ["reque
stId", "fileSystemPath", "files"]], | 83 ['requestId', 'fileSystemPath', 'totalWork'] |
| 87 [InspectorFrontendHostAPI.Events.SetInspectedTabId, "setInspectedTabId", ["t
abId"]], | 84 ], |
| 88 [InspectorFrontendHostAPI.Events.SetUseSoftMenu, "setUseSoftMenu", ["useSoft
Menu"]], | 85 [InspectorFrontendHostAPI.Events.IndexingWorked, 'indexingWorked', ['requestId
', 'fileSystemPath', 'worked']], |
| 89 [InspectorFrontendHostAPI.Events.ShowPanel, "showPanel", ["panelName"]] | 86 [InspectorFrontendHostAPI.Events.IndexingDone, 'indexingDone', ['requestId', '
fileSystemPath']], |
| 87 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, 'keyEventUnhandled', ['eve
nt']], |
| 88 [InspectorFrontendHostAPI.Events.ReloadInspectedPage, 'reloadInspectedPage', [
'hard']], |
| 89 [InspectorFrontendHostAPI.Events.RevealSourceLine, 'revealSourceLine', ['url',
'lineNumber', 'columnNumber']], |
| 90 [InspectorFrontendHostAPI.Events.SavedURL, 'savedURL', ['url']], |
| 91 [InspectorFrontendHostAPI.Events.SearchCompleted, 'searchCompleted', ['request
Id', 'fileSystemPath', 'files']], |
| 92 [InspectorFrontendHostAPI.Events.SetInspectedTabId, 'setInspectedTabId', ['tab
Id']], |
| 93 [InspectorFrontendHostAPI.Events.SetUseSoftMenu, 'setUseSoftMenu', ['useSoftMe
nu']], |
| 94 [InspectorFrontendHostAPI.Events.ShowPanel, 'showPanel', ['panelName']] |
| 90 ]; | 95 ]; |
| 91 | 96 |
| 92 InspectorFrontendHostAPI.prototype = { | 97 InspectorFrontendHostAPI.prototype = { |
| 93 /** | 98 /** |
| 94 * @param {string=} fileSystemPath | 99 * @param {string=} fileSystemPath |
| 95 */ | 100 */ |
| 96 addFileSystem: function(fileSystemPath) { }, | 101 addFileSystem: function(fileSystemPath) {}, |
| 97 | 102 |
| 98 /** | 103 /** |
| 99 * @param {string} url | 104 * @param {string} url |
| 100 * @param {string} content | 105 * @param {string} content |
| 101 */ | 106 */ |
| 102 append: function(url, content) { }, | 107 append: function(url, content) {}, |
| 103 | 108 |
| 104 loadCompleted: function() { }, | 109 loadCompleted: function() {}, |
| 105 | 110 |
| 106 /** | 111 /** |
| 107 * @param {number} requestId | 112 * @param {number} requestId |
| 108 * @param {string} fileSystemPath | 113 * @param {string} fileSystemPath |
| 109 */ | 114 */ |
| 110 indexPath: function(requestId, fileSystemPath) { }, | 115 indexPath: function(requestId, fileSystemPath) {}, |
| 111 | 116 |
| 112 /** | 117 /** |
| 113 * @return {string} | 118 * @return {string} |
| 114 */ | 119 */ |
| 115 getSelectionBackgroundColor: function() { }, | 120 getSelectionBackgroundColor: function() {}, |
| 116 | 121 |
| 117 /** | 122 /** |
| 118 * @return {string} | 123 * @return {string} |
| 119 */ | 124 */ |
| 120 getSelectionForegroundColor: function() { }, | 125 getSelectionForegroundColor: function() {}, |
| 121 | 126 |
| 122 /** | 127 /** |
| 123 * Requests inspected page to be placed atop of the inspector frontend with
specified bounds. | 128 * Requests inspected page to be placed atop of the inspector frontend with sp
ecified bounds. |
| 124 * @param {{x: number, y: number, width: number, height: number}} bounds | 129 * @param {{x: number, y: number, width: number, height: number}} bounds |
| 125 */ | 130 */ |
| 126 setInspectedPageBounds: function(bounds) { }, | 131 setInspectedPageBounds: function(bounds) {}, |
| 127 | 132 |
| 128 /** | 133 /** |
| 129 * @param {!Array<string>} certChain | 134 * @param {!Array<string>} certChain |
| 130 */ | 135 */ |
| 131 showCertificateViewer: function(certChain) { }, | 136 showCertificateViewer: function(certChain) {}, |
| 132 | 137 |
| 133 /** | 138 /** |
| 134 * @param {string} shortcuts | 139 * @param {string} shortcuts |
| 135 */ | 140 */ |
| 136 setWhitelistedShortcuts: function(shortcuts) { }, | 141 setWhitelistedShortcuts: function(shortcuts) {}, |
| 137 | 142 |
| 138 inspectElementCompleted: function() { }, | 143 inspectElementCompleted: function() {}, |
| 139 | 144 |
| 140 /** | 145 /** |
| 141 * @param {string} url | 146 * @param {string} url |
| 142 */ | 147 */ |
| 143 openInNewTab: function(url) { }, | 148 openInNewTab: function(url) {}, |
| 144 | 149 |
| 145 /** | 150 /** |
| 146 * @param {string} fileSystemPath | 151 * @param {string} fileSystemPath |
| 147 */ | 152 */ |
| 148 removeFileSystem: function(fileSystemPath) { }, | 153 removeFileSystem: function(fileSystemPath) {}, |
| 149 | 154 |
| 150 requestFileSystems: function() { }, | 155 requestFileSystems: function() {}, |
| 151 | 156 |
| 152 /** | 157 /** |
| 153 * @param {string} url | 158 * @param {string} url |
| 154 * @param {string} content | 159 * @param {string} content |
| 155 * @param {boolean} forceSaveAs | 160 * @param {boolean} forceSaveAs |
| 156 */ | 161 */ |
| 157 save: function(url, content, forceSaveAs) { }, | 162 save: function(url, content, forceSaveAs) {}, |
| 158 | 163 |
| 159 /** | 164 /** |
| 160 * @param {number} requestId | 165 * @param {number} requestId |
| 161 * @param {string} fileSystemPath | 166 * @param {string} fileSystemPath |
| 162 * @param {string} query | 167 * @param {string} query |
| 163 */ | 168 */ |
| 164 searchInPath: function(requestId, fileSystemPath, query) { }, | 169 searchInPath: function(requestId, fileSystemPath, query) {}, |
| 165 | 170 |
| 166 /** | 171 /** |
| 167 * @param {number} requestId | 172 * @param {number} requestId |
| 168 */ | 173 */ |
| 169 stopIndexing: function(requestId) { }, | 174 stopIndexing: function(requestId) {}, |
| 170 | 175 |
| 171 bringToFront: function() { }, | 176 bringToFront: function() {}, |
| 172 | 177 |
| 173 closeWindow: function() { }, | 178 closeWindow: function() {}, |
| 174 | 179 |
| 175 copyText: function(text) { }, | 180 copyText: function(text) {}, |
| 176 | 181 |
| 177 /** | 182 /** |
| 178 * @param {string} url | 183 * @param {string} url |
| 179 */ | 184 */ |
| 180 inspectedURLChanged: function(url) { }, | 185 inspectedURLChanged: function(url) {}, |
| 181 | 186 |
| 182 /** | 187 /** |
| 183 * @param {string} fileSystemId | 188 * @param {string} fileSystemId |
| 184 * @param {string} registeredName | 189 * @param {string} registeredName |
| 185 * @return {?DOMFileSystem} | 190 * @return {?DOMFileSystem} |
| 186 */ | 191 */ |
| 187 isolatedFileSystem: function(fileSystemId, registeredName) { }, | 192 isolatedFileSystem: function(fileSystemId, registeredName) {}, |
| 188 | 193 |
| 189 /** | 194 /** |
| 190 * @param {string} url | 195 * @param {string} url |
| 191 * @param {string} headers | 196 * @param {string} headers |
| 192 * @param {number} streamId | 197 * @param {number} streamId |
| 193 * @param {function(!InspectorFrontendHostAPI.LoadNetworkResourceResult)} ca
llback | 198 * @param {function(!InspectorFrontendHostAPI.LoadNetworkResourceResult)} call
back |
| 194 */ | 199 */ |
| 195 loadNetworkResource: function(url, headers, streamId, callback) { }, | 200 loadNetworkResource: function(url, headers, streamId, callback) {}, |
| 196 | 201 |
| 197 /** | 202 /** |
| 198 * @param {function(!Object<string, string>)} callback | 203 * @param {function(!Object<string, string>)} callback |
| 199 */ | 204 */ |
| 200 getPreferences: function(callback) { }, | 205 getPreferences: function(callback) {}, |
| 201 | 206 |
| 202 /** | 207 /** |
| 203 * @param {string} name | 208 * @param {string} name |
| 204 * @param {string} value | 209 * @param {string} value |
| 205 */ | 210 */ |
| 206 setPreference: function(name, value) { }, | 211 setPreference: function(name, value) {}, |
| 207 | 212 |
| 208 /** | 213 /** |
| 209 * @param {string} name | 214 * @param {string} name |
| 210 */ | 215 */ |
| 211 removePreference: function(name) { }, | 216 removePreference: function(name) {}, |
| 212 | 217 |
| 213 clearPreferences: function() { }, | 218 clearPreferences: function() {}, |
| 214 | 219 |
| 215 /** | 220 /** |
| 216 * @param {!FileSystem} fileSystem | 221 * @param {!FileSystem} fileSystem |
| 217 */ | 222 */ |
| 218 upgradeDraggedFileSystemPermissions: function(fileSystem) { }, | 223 upgradeDraggedFileSystemPermissions: function(fileSystem) {}, |
| 219 | 224 |
| 220 /** | 225 /** |
| 221 * @return {string} | 226 * @return {string} |
| 222 */ | 227 */ |
| 223 platform: function() { }, | 228 platform: function() {}, |
| 224 | 229 |
| 225 /** | 230 /** |
| 226 * @param {string} actionName | 231 * @param {string} actionName |
| 227 * @param {number} actionCode | 232 * @param {number} actionCode |
| 228 * @param {number} bucketSize | 233 * @param {number} bucketSize |
| 229 */ | 234 */ |
| 230 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) { }, | 235 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) {}, |
| 231 | 236 |
| 232 /** | 237 /** |
| 233 * @param {string} message | 238 * @param {string} message |
| 234 */ | 239 */ |
| 235 sendMessageToBackend: function(message) { }, | 240 sendMessageToBackend: function(message) {}, |
| 236 | 241 |
| 237 /** | 242 /** |
| 238 * @param {boolean} discoverUsbDevices | 243 * @param {boolean} discoverUsbDevices |
| 239 * @param {boolean} portForwardingEnabled | 244 * @param {boolean} portForwardingEnabled |
| 240 * @param {!Adb.PortForwardingConfig} portForwardingConfig | 245 * @param {!Adb.PortForwardingConfig} portForwardingConfig |
| 241 */ | 246 */ |
| 242 setDevicesDiscoveryConfig: function(discoverUsbDevices, portForwardingEnable
d, portForwardingConfig) { }, | 247 setDevicesDiscoveryConfig: function(discoverUsbDevices, portForwardingEnabled,
portForwardingConfig) {}, |
| 243 | 248 |
| 244 /** | 249 /** |
| 245 * @param {boolean} enabled | 250 * @param {boolean} enabled |
| 246 */ | 251 */ |
| 247 setDevicesUpdatesEnabled: function(enabled) { }, | 252 setDevicesUpdatesEnabled: function(enabled) {}, |
| 248 | 253 |
| 249 /** | 254 /** |
| 250 * @param {string} pageId | 255 * @param {string} pageId |
| 251 * @param {string} action | 256 * @param {string} action |
| 252 */ | 257 */ |
| 253 performActionOnRemotePage: function(pageId, action) { }, | 258 performActionOnRemotePage: function(pageId, action) {}, |
| 254 | 259 |
| 255 /** | 260 /** |
| 256 * @param {string} browserId | 261 * @param {string} browserId |
| 257 * @param {string} url | 262 * @param {string} url |
| 258 */ | 263 */ |
| 259 openRemotePage: function(browserId, url) { }, | 264 openRemotePage: function(browserId, url) {}, |
| 260 | 265 |
| 261 /** | 266 /** |
| 262 * @param {string} origin | 267 * @param {string} origin |
| 263 * @param {string} script | 268 * @param {string} script |
| 264 */ | 269 */ |
| 265 setInjectedScriptForOrigin: function(origin, script) { }, | 270 setInjectedScriptForOrigin: function(origin, script) {}, |
| 266 | 271 |
| 267 /** | 272 /** |
| 268 * @param {boolean} isDocked | 273 * @param {boolean} isDocked |
| 269 * @param {function()} callback | 274 * @param {function()} callback |
| 270 */ | 275 */ |
| 271 setIsDocked: function(isDocked, callback) { }, | 276 setIsDocked: function(isDocked, callback) {}, |
| 272 | 277 |
| 273 /** | 278 /** |
| 274 * @return {number} | 279 * @return {number} |
| 275 */ | 280 */ |
| 276 zoomFactor: function() { }, | 281 zoomFactor: function() {}, |
| 277 | 282 |
| 278 zoomIn: function() { }, | 283 zoomIn: function() {}, |
| 279 | 284 |
| 280 zoomOut: function() { }, | 285 zoomOut: function() {}, |
| 281 | 286 |
| 282 resetZoom: function() { }, | 287 resetZoom: function() {}, |
| 283 | 288 |
| 284 /** | 289 /** |
| 285 * @param {number} x | 290 * @param {number} x |
| 286 * @param {number} y | 291 * @param {number} y |
| 287 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items | 292 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items |
| 288 * @param {!Document} document | 293 * @param {!Document} document |
| 289 */ | 294 */ |
| 290 showContextMenuAtPoint: function(x, y, items, document) { }, | 295 showContextMenuAtPoint: function(x, y, items, document) {}, |
| 291 | 296 |
| 292 /** | 297 /** |
| 293 * @param {function()} callback | 298 * @param {function()} callback |
| 294 */ | 299 */ |
| 295 reattach: function(callback) { }, | 300 reattach: function(callback) {}, |
| 296 | 301 |
| 297 /** | 302 /** |
| 298 * @return {boolean} | 303 * @return {boolean} |
| 299 */ | 304 */ |
| 300 isUnderTest: function() { }, | 305 isUnderTest: function() {}, |
| 301 | 306 |
| 302 readyForTest: function() { }, | 307 readyForTest: function() {}, |
| 303 | 308 |
| 304 /** | 309 /** |
| 305 * @return {boolean} | 310 * @return {boolean} |
| 306 */ | 311 */ |
| 307 isHostedMode: function() { } | 312 isHostedMode: function() {} |
| 308 }; | 313 }; |
| OLD | NEW |