| 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 /** @interface */ | 4 /** @interface */ |
| 5 function InspectorFrontendHostAPI() { | 5 function InspectorFrontendHostAPI() { |
| 6 } | 6 } |
| 7 window.InspectorFrontendHostAPI = InspectorFrontendHostAPI; | 7 window.InspectorFrontendHostAPI = InspectorFrontendHostAPI; |
| 8 /** @typedef | 8 /** @typedef |
| 9 {{ | 9 {{ |
| 10 type: string, | 10 type: string, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ShowPanel: Symbol('showPanel') | 56 ShowPanel: Symbol('showPanel') |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 InspectorFrontendHostAPI.EventDescriptors = [ | 59 InspectorFrontendHostAPI.EventDescriptors = [ |
| 60 [InspectorFrontendHostAPI.Events.AddExtensions, 'addExtensions', ['extensions'
]], | 60 [InspectorFrontendHostAPI.Events.AddExtensions, 'addExtensions', ['extensions'
]], |
| 61 [InspectorFrontendHostAPI.Events.AppendedToURL, 'appendedToURL', ['url']], | 61 [InspectorFrontendHostAPI.Events.AppendedToURL, 'appendedToURL', ['url']], |
| 62 [InspectorFrontendHostAPI.Events.CanceledSaveURL, 'canceledSaveURL', ['url']], | 62 [InspectorFrontendHostAPI.Events.CanceledSaveURL, 'canceledSaveURL', ['url']], |
| 63 [InspectorFrontendHostAPI.Events.ContextMenuCleared, 'contextMenuCleared', []]
, | 63 [InspectorFrontendHostAPI.Events.ContextMenuCleared, 'contextMenuCleared', []]
, |
| 64 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, 'contextMenuItemSele
cted', ['id']], | 64 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, 'contextMenuItemSele
cted', ['id']], |
| 65 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, 'deviceCountUpdated', ['c
ount']], | 65 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, 'deviceCountUpdated', ['c
ount']], |
| 66 [ | 66 [InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, 'devicesDiscov
eryConfigChanged', ['config']], |
| 67 InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, 'devicesDisco
veryConfigChanged', | |
| 68 ['discoverUsbDevices', 'portForwardingEnabled', 'portForwardingConfig'] | |
| 69 ], | |
| 70 [ | 67 [ |
| 71 InspectorFrontendHostAPI.Events.DevicesPortForwardingStatusChanged, 'devices
PortForwardingStatusChanged', ['status'] | 68 InspectorFrontendHostAPI.Events.DevicesPortForwardingStatusChanged, 'devices
PortForwardingStatusChanged', ['status'] |
| 72 ], | 69 ], |
| 73 [InspectorFrontendHostAPI.Events.DevicesUpdated, 'devicesUpdated', ['devices']
], | 70 [InspectorFrontendHostAPI.Events.DevicesUpdated, 'devicesUpdated', ['devices']
], |
| 74 [InspectorFrontendHostAPI.Events.DispatchMessage, 'dispatchMessage', ['message
Object']], | 71 [InspectorFrontendHostAPI.Events.DispatchMessage, 'dispatchMessage', ['message
Object']], |
| 75 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, 'dispatchMessageChunk',
['messageChunk', 'messageSize']], | 72 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, 'dispatchMessageChunk',
['messageChunk', 'messageSize']], |
| 76 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, 'enterInspectElement
Mode', []], | 73 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, 'enterInspectElement
Mode', []], |
| 77 [InspectorFrontendHostAPI.Events.EvaluateForTestInFrontend, 'evaluateForTestIn
Frontend', ['callId', 'script']], | 74 [InspectorFrontendHostAPI.Events.EvaluateForTestInFrontend, 'evaluateForTestIn
Frontend', ['callId', 'script']], |
| 78 [InspectorFrontendHostAPI.Events.EyeDropperPickedColor, 'eyeDropperPickedColor
', ['color']], | 75 [InspectorFrontendHostAPI.Events.EyeDropperPickedColor, 'eyeDropperPickedColor
', ['color']], |
| 79 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, 'fileSystemsLoaded', ['fil
eSystems']], | 76 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, 'fileSystemsLoaded', ['fil
eSystems']], |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 * @param {number} bucketSize | 240 * @param {number} bucketSize |
| 244 */ | 241 */ |
| 245 recordEnumeratedHistogram(actionName, actionCode, bucketSize) {}, | 242 recordEnumeratedHistogram(actionName, actionCode, bucketSize) {}, |
| 246 | 243 |
| 247 /** | 244 /** |
| 248 * @param {string} message | 245 * @param {string} message |
| 249 */ | 246 */ |
| 250 sendMessageToBackend(message) {}, | 247 sendMessageToBackend(message) {}, |
| 251 | 248 |
| 252 /** | 249 /** |
| 253 * @param {boolean} discoverUsbDevices | 250 * @param {!Adb.Config} config |
| 254 * @param {boolean} portForwardingEnabled | |
| 255 * @param {!Adb.PortForwardingConfig} portForwardingConfig | |
| 256 */ | 251 */ |
| 257 setDevicesDiscoveryConfig(discoverUsbDevices, portForwardingEnabled, portForwa
rdingConfig) {}, | 252 setDevicesDiscoveryConfig(config) {}, |
| 258 | 253 |
| 259 /** | 254 /** |
| 260 * @param {boolean} enabled | 255 * @param {boolean} enabled |
| 261 */ | 256 */ |
| 262 setDevicesUpdatesEnabled(enabled) {}, | 257 setDevicesUpdatesEnabled(enabled) {}, |
| 263 | 258 |
| 264 /** | 259 /** |
| 265 * @param {string} pageId | 260 * @param {string} pageId |
| 266 * @param {string} action | 261 * @param {string} action |
| 267 */ | 262 */ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 */ | 311 */ |
| 317 isUnderTest() {}, | 312 isUnderTest() {}, |
| 318 | 313 |
| 319 readyForTest() {}, | 314 readyForTest() {}, |
| 320 | 315 |
| 321 /** | 316 /** |
| 322 * @return {boolean} | 317 * @return {boolean} |
| 323 */ | 318 */ |
| 324 isHostedMode() {} | 319 isHostedMode() {} |
| 325 }; | 320 }; |
| OLD | NEW |