| 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 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 InspectorFrontendHostAPI.Events = { | 29 InspectorFrontendHostAPI.Events = { |
| 30 AddExtensions: "addExtensions", | 30 AddExtensions: "addExtensions", |
| 31 AppendedToURL: "appendedToURL", | 31 AppendedToURL: "appendedToURL", |
| 32 CanceledSaveURL: "canceledSaveURL", | 32 CanceledSaveURL: "canceledSaveURL", |
| 33 ContextMenuCleared: "contextMenuCleared", | 33 ContextMenuCleared: "contextMenuCleared", |
| 34 ContextMenuItemSelected: "contextMenuItemSelected", | 34 ContextMenuItemSelected: "contextMenuItemSelected", |
| 35 DeviceCountUpdated: "deviceCountUpdated", | 35 DeviceCountUpdated: "deviceCountUpdated", |
| 36 DevicesUpdated: "devicesUpdated", | 36 DevicesUpdated: "devicesUpdated", |
| 37 DispatchMessage: "dispatchMessage", | 37 DispatchMessage: "dispatchMessage", |
| 38 DispatchMessageChunk: "dispatchMessageChunk", | 38 DispatchMessageChunk: "dispatchMessageChunk", |
| 39 DispatchFrontendAPIMessage: "dispatchFrontendAPIMessage", |
| 39 EnterInspectElementMode: "enterInspectElementMode", | 40 EnterInspectElementMode: "enterInspectElementMode", |
| 40 FileSystemsLoaded: "fileSystemsLoaded", | 41 FileSystemsLoaded: "fileSystemsLoaded", |
| 41 FileSystemRemoved: "fileSystemRemoved", | 42 FileSystemRemoved: "fileSystemRemoved", |
| 42 FileSystemAdded: "fileSystemAdded", | 43 FileSystemAdded: "fileSystemAdded", |
| 43 IndexingTotalWorkCalculated: "indexingTotalWorkCalculated", | 44 IndexingTotalWorkCalculated: "indexingTotalWorkCalculated", |
| 44 IndexingWorked: "indexingWorked", | 45 IndexingWorked: "indexingWorked", |
| 45 IndexingDone: "indexingDone", | 46 IndexingDone: "indexingDone", |
| 46 KeyEventUnhandled: "keyEventUnhandled", | 47 KeyEventUnhandled: "keyEventUnhandled", |
| 47 ReloadInspectedPage: "reloadInspectedPage", | 48 ReloadInspectedPage: "reloadInspectedPage", |
| 48 RevealSourceLine: "revealSourceLine", | 49 RevealSourceLine: "revealSourceLine", |
| 49 SavedURL: "savedURL", | 50 SavedURL: "savedURL", |
| 50 SearchCompleted: "searchCompleted", | 51 SearchCompleted: "searchCompleted", |
| 51 SetInspectedTabId: "setInspectedTabId", | 52 SetInspectedTabId: "setInspectedTabId", |
| 52 SetUseSoftMenu: "setUseSoftMenu", | 53 SetUseSoftMenu: "setUseSoftMenu", |
| 53 ShowConsole: "showConsole" | 54 ShowConsole: "showConsole" |
| 54 } | 55 } |
| 55 | 56 |
| 56 InspectorFrontendHostAPI.EventDescriptors = [ | 57 InspectorFrontendHostAPI.EventDescriptors = [ |
| 57 [InspectorFrontendHostAPI.Events.AddExtensions, ["extensions"]], | 58 [InspectorFrontendHostAPI.Events.AddExtensions, ["extensions"]], |
| 58 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]], | 59 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]], |
| 59 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]], | 60 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]], |
| 60 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []], | 61 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []], |
| 61 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]], | 62 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]], |
| 62 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]], | 63 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]], |
| 63 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]], | 64 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]], |
| 64 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]], | 65 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]], |
| 65 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, ["messageChunk", "mes
sageSize"]], | 66 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, ["messageChunk", "mes
sageSize"]], |
| 67 [InspectorFrontendHostAPI.Events.DispatchFrontendAPIMessage, ["messageObject
"]], |
| 66 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []], | 68 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []], |
| 67 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]], | 69 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]], |
| 68 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]], | 70 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]], |
| 69 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst
em"]], | 71 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst
em"]], |
| 70 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId",
"fileSystemPath", "totalWork"]], | 72 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId",
"fileSystemPath", "totalWork"]], |
| 71 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa
th", "worked"]], | 73 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa
th", "worked"]], |
| 72 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath
"]], | 74 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath
"]], |
| 73 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]], | 75 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]], |
| 74 [InspectorFrontendHostAPI.Events.ReloadInspectedPage, ["hard"]], | 76 [InspectorFrontendHostAPI.Events.ReloadInspectedPage, ["hard"]], |
| 75 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co
lumnNumber"]], | 77 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co
lumnNumber"]], |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 showContextMenuAtPoint: function(x, y, items, document) { }, | 256 showContextMenuAtPoint: function(x, y, items, document) { }, |
| 255 | 257 |
| 256 /** | 258 /** |
| 257 * @return {boolean} | 259 * @return {boolean} |
| 258 */ | 260 */ |
| 259 isUnderTest: function() { }, | 261 isUnderTest: function() { }, |
| 260 | 262 |
| 261 /** | 263 /** |
| 262 * @return {boolean} | 264 * @return {boolean} |
| 263 */ | 265 */ |
| 264 isHostedMode: function() { } | 266 isHostedMode: function() { }, |
| 267 |
| 268 /** |
| 269 * @param {string} message |
| 270 */ |
| 271 sendFrontendAPINotification: function(message) { } |
| 265 } | 272 } |
| OLD | NEW |