| 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 26 matching lines...) Expand all Loading... |
| 37 DispatchMessage: "dispatchMessage", | 37 DispatchMessage: "dispatchMessage", |
| 38 DispatchMessageChunk: "dispatchMessageChunk", | 38 DispatchMessageChunk: "dispatchMessageChunk", |
| 39 EnterInspectElementMode: "enterInspectElementMode", | 39 EnterInspectElementMode: "enterInspectElementMode", |
| 40 FileSystemsLoaded: "fileSystemsLoaded", | 40 FileSystemsLoaded: "fileSystemsLoaded", |
| 41 FileSystemRemoved: "fileSystemRemoved", | 41 FileSystemRemoved: "fileSystemRemoved", |
| 42 FileSystemAdded: "fileSystemAdded", | 42 FileSystemAdded: "fileSystemAdded", |
| 43 IndexingTotalWorkCalculated: "indexingTotalWorkCalculated", | 43 IndexingTotalWorkCalculated: "indexingTotalWorkCalculated", |
| 44 IndexingWorked: "indexingWorked", | 44 IndexingWorked: "indexingWorked", |
| 45 IndexingDone: "indexingDone", | 45 IndexingDone: "indexingDone", |
| 46 KeyEventUnhandled: "keyEventUnhandled", | 46 KeyEventUnhandled: "keyEventUnhandled", |
| 47 ReloadInspectedPage: "reloadInspectedPage", |
| 47 RevealSourceLine: "revealSourceLine", | 48 RevealSourceLine: "revealSourceLine", |
| 48 SavedURL: "savedURL", | 49 SavedURL: "savedURL", |
| 49 SearchCompleted: "searchCompleted", | 50 SearchCompleted: "searchCompleted", |
| 50 SetInspectedTabId: "setInspectedTabId", | 51 SetInspectedTabId: "setInspectedTabId", |
| 51 SetUseSoftMenu: "setUseSoftMenu", | 52 SetUseSoftMenu: "setUseSoftMenu", |
| 52 ShowConsole: "showConsole" | 53 ShowConsole: "showConsole" |
| 53 } | 54 } |
| 54 | 55 |
| 55 InspectorFrontendHostAPI.EventDescriptors = [ | 56 InspectorFrontendHostAPI.EventDescriptors = [ |
| 56 [InspectorFrontendHostAPI.Events.AddExtensions, ["extensions"]], | 57 [InspectorFrontendHostAPI.Events.AddExtensions, ["extensions"]], |
| 57 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]], | 58 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]], |
| 58 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]], | 59 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]], |
| 59 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []], | 60 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []], |
| 60 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]], | 61 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]], |
| 61 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]], | 62 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]], |
| 62 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]], | 63 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]], |
| 63 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]], | 64 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]], |
| 64 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, ["messageChunk", "mes
sageSize"]], | 65 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, ["messageChunk", "mes
sageSize"]], |
| 65 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []], | 66 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []], |
| 66 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]], | 67 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]], |
| 67 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]], | 68 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]], |
| 68 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst
em"]], | 69 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst
em"]], |
| 69 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId",
"fileSystemPath", "totalWork"]], | 70 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId",
"fileSystemPath", "totalWork"]], |
| 70 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa
th", "worked"]], | 71 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa
th", "worked"]], |
| 71 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath
"]], | 72 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath
"]], |
| 72 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]], | 73 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]], |
| 74 [InspectorFrontendHostAPI.Events.ReloadInspectedPage, ["hard"]], |
| 73 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co
lumnNumber"]], | 75 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co
lumnNumber"]], |
| 74 [InspectorFrontendHostAPI.Events.SavedURL, ["url"]], | 76 [InspectorFrontendHostAPI.Events.SavedURL, ["url"]], |
| 75 [InspectorFrontendHostAPI.Events.SearchCompleted, ["requestId", "fileSystemP
ath", "files"]], | 77 [InspectorFrontendHostAPI.Events.SearchCompleted, ["requestId", "fileSystemP
ath", "files"]], |
| 76 [InspectorFrontendHostAPI.Events.SetInspectedTabId, ["tabId"]], | 78 [InspectorFrontendHostAPI.Events.SetInspectedTabId, ["tabId"]], |
| 77 [InspectorFrontendHostAPI.Events.SetUseSoftMenu, ["useSoftMenu"]], | 79 [InspectorFrontendHostAPI.Events.SetUseSoftMenu, ["useSoftMenu"]], |
| 78 [InspectorFrontendHostAPI.Events.ShowConsole, []] | 80 [InspectorFrontendHostAPI.Events.ShowConsole, []] |
| 79 ]; | 81 ]; |
| 80 | 82 |
| 81 InspectorFrontendHostAPI.prototype = { | 83 InspectorFrontendHostAPI.prototype = { |
| 82 addFileSystem: function() { }, | 84 addFileSystem: function() { }, |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 /** | 256 /** |
| 255 * @return {boolean} | 257 * @return {boolean} |
| 256 */ | 258 */ |
| 257 isUnderTest: function() { }, | 259 isUnderTest: function() { }, |
| 258 | 260 |
| 259 /** | 261 /** |
| 260 * @return {boolean} | 262 * @return {boolean} |
| 261 */ | 263 */ |
| 262 isHostedMode: function() { } | 264 isHostedMode: function() { } |
| 263 } | 265 } |
| OLD | NEW |