Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHostAPI.js

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698