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 | 4 |
5 | 5 |
6 /** @interface */ | 6 /** @interface */ |
7 function InspectorFrontendHostAPI() | 7 function InspectorFrontendHostAPI() |
8 { | 8 { |
9 } | 9 } |
10 window.InspectorFrontendHostAPI = InspectorFrontendHostAPI; | 10 window.InspectorFrontendHostAPI = InspectorFrontendHostAPI; |
11 /** @typedef | 11 /** @typedef |
12 {{ | 12 {{ |
13 type: string, | 13 type: string, |
14 id: (number|undefined), | 14 id: (number|undefined), |
15 label: (string|undefined), | 15 label: (string|undefined), |
16 enabled: (boolean|undefined), | 16 enabled: (boolean|undefined), |
17 checked: (boolean|undefined), | 17 checked: (boolean|undefined), |
18 subItems: (!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>|undefine
d) | 18 subItems: (!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>|undefine
d) |
19 }} */ | 19 }} */ |
20 InspectorFrontendHostAPI.ContextMenuDescriptor; | 20 InspectorFrontendHostAPI.ContextMenuDescriptor; |
21 | 21 |
22 /** @typedef | 22 /** @typedef |
23 {{ | 23 {{ |
24 statusCode: number, | 24 statusCode: number, |
25 headers: (!Object.<string, string>|undefined) | 25 headers: (!Object.<string, string>|undefined) |
26 }} */ | 26 }} */ |
27 InspectorFrontendHostAPI.LoadNetworkResourceResult; | 27 InspectorFrontendHostAPI.LoadNetworkResourceResult; |
28 | 28 |
| 29 /** @enum {string} */ |
29 InspectorFrontendHostAPI.Events = { | 30 InspectorFrontendHostAPI.Events = { |
30 AddExtensions: "addExtensions", | 31 AddExtensions: "addExtensions", |
31 AppendedToURL: "appendedToURL", | 32 AppendedToURL: "appendedToURL", |
32 CanceledSaveURL: "canceledSaveURL", | 33 CanceledSaveURL: "canceledSaveURL", |
33 ContextMenuCleared: "contextMenuCleared", | 34 ContextMenuCleared: "contextMenuCleared", |
34 ContextMenuItemSelected: "contextMenuItemSelected", | 35 ContextMenuItemSelected: "contextMenuItemSelected", |
35 DeviceCountUpdated: "deviceCountUpdated", | 36 DeviceCountUpdated: "deviceCountUpdated", |
36 DevicesDiscoveryConfigChanged: "devicesDiscoveryConfigChanged", | 37 DevicesDiscoveryConfigChanged: "devicesDiscoveryConfigChanged", |
37 DevicesPortForwardingStatusChanged: "devicesPortForwardingStatusChanged", | 38 DevicesPortForwardingStatusChanged: "devicesPortForwardingStatusChanged", |
38 DevicesUpdated: "devicesUpdated", | 39 DevicesUpdated: "devicesUpdated", |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 */ | 289 */ |
289 isUnderTest: function() { }, | 290 isUnderTest: function() { }, |
290 | 291 |
291 readyForTest: function() { }, | 292 readyForTest: function() { }, |
292 | 293 |
293 /** | 294 /** |
294 * @return {boolean} | 295 * @return {boolean} |
295 */ | 296 */ |
296 isHostedMode: function() { } | 297 isHostedMode: function() { } |
297 } | 298 } |
OLD | NEW |