| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 [ |
| 67 InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, 'devicesDisco
veryConfigChanged', | 67 InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged, 'devicesDisco
veryConfigChanged', |
| 68 ['discoverUsbDevices', 'portForwardingEnabled', 'portForwardingConfig'] | 68 [ |
| 69 'discoverUsbDevices', 'portForwardingEnabled', 'portForwardingConfig', 'ne
tworkDiscoveryEnabled', |
| 70 'networkDiscoveryConfig' |
| 71 ] |
| 69 ], | 72 ], |
| 70 [ | 73 [ |
| 71 InspectorFrontendHostAPI.Events.DevicesPortForwardingStatusChanged, 'devices
PortForwardingStatusChanged', ['status'] | 74 InspectorFrontendHostAPI.Events.DevicesPortForwardingStatusChanged, 'devices
PortForwardingStatusChanged', ['status'] |
| 72 ], | 75 ], |
| 73 [InspectorFrontendHostAPI.Events.DevicesUpdated, 'devicesUpdated', ['devices']
], | 76 [InspectorFrontendHostAPI.Events.DevicesUpdated, 'devicesUpdated', ['devices']
], |
| 74 [InspectorFrontendHostAPI.Events.DispatchMessage, 'dispatchMessage', ['message
Object']], | 77 [InspectorFrontendHostAPI.Events.DispatchMessage, 'dispatchMessage', ['message
Object']], |
| 75 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, 'dispatchMessageChunk',
['messageChunk', 'messageSize']], | 78 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, 'dispatchMessageChunk',
['messageChunk', 'messageSize']], |
| 76 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, 'enterInspectElement
Mode', []], | 79 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, 'enterInspectElement
Mode', []], |
| 77 [InspectorFrontendHostAPI.Events.EvaluateForTestInFrontend, 'evaluateForTestIn
Frontend', ['callId', 'script']], | 80 [InspectorFrontendHostAPI.Events.EvaluateForTestInFrontend, 'evaluateForTestIn
Frontend', ['callId', 'script']], |
| 78 [InspectorFrontendHostAPI.Events.EyeDropperPickedColor, 'eyeDropperPickedColor
', ['color']], | 81 [InspectorFrontendHostAPI.Events.EyeDropperPickedColor, 'eyeDropperPickedColor
', ['color']], |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 249 |
| 247 /** | 250 /** |
| 248 * @param {string} message | 251 * @param {string} message |
| 249 */ | 252 */ |
| 250 sendMessageToBackend(message) {}, | 253 sendMessageToBackend(message) {}, |
| 251 | 254 |
| 252 /** | 255 /** |
| 253 * @param {boolean} discoverUsbDevices | 256 * @param {boolean} discoverUsbDevices |
| 254 * @param {boolean} portForwardingEnabled | 257 * @param {boolean} portForwardingEnabled |
| 255 * @param {!Adb.PortForwardingConfig} portForwardingConfig | 258 * @param {!Adb.PortForwardingConfig} portForwardingConfig |
| 259 * @param {boolean} networkDiscoveryEnabled |
| 260 * @param {!Adb.NetworkDiscoveryConfig} networkDiscoveryConfig |
| 256 */ | 261 */ |
| 257 setDevicesDiscoveryConfig(discoverUsbDevices, portForwardingEnabled, portForwa
rdingConfig) {}, | 262 setDevicesDiscoveryConfig( |
| 263 discoverUsbDevices, portForwardingEnabled, portForwardingConfig, networkDi
scoveryEnabled, |
| 264 networkDiscoveryConfig) {}, |
| 258 | 265 |
| 259 /** | 266 /** |
| 260 * @param {boolean} enabled | 267 * @param {boolean} enabled |
| 261 */ | 268 */ |
| 262 setDevicesUpdatesEnabled(enabled) {}, | 269 setDevicesUpdatesEnabled(enabled) {}, |
| 263 | 270 |
| 264 /** | 271 /** |
| 265 * @param {string} pageId | 272 * @param {string} pageId |
| 266 * @param {string} action | 273 * @param {string} action |
| 267 */ | 274 */ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 */ | 323 */ |
| 317 isUnderTest() {}, | 324 isUnderTest() {}, |
| 318 | 325 |
| 319 readyForTest() {}, | 326 readyForTest() {}, |
| 320 | 327 |
| 321 /** | 328 /** |
| 322 * @return {boolean} | 329 * @return {boolean} |
| 323 */ | 330 */ |
| 324 isHostedMode() {} | 331 isHostedMode() {} |
| 325 }; | 332 }; |
| OLD | NEW |