| 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 30 matching lines...) Expand all Loading... |
| 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 RevealSourceLine: "revealSourceLine", | 47 RevealSourceLine: "revealSourceLine", |
| 48 SavedURL: "savedURL", | 48 SavedURL: "savedURL", |
| 49 SearchCompleted: "searchCompleted", | 49 SearchCompleted: "searchCompleted", |
| 50 SetInspectedTabId: "setInspectedTabId", | 50 SetInspectedTabId: "setInspectedTabId", |
| 51 SetToolbarColors: "setToolbarColors", | |
| 52 SetUseSoftMenu: "setUseSoftMenu", | 51 SetUseSoftMenu: "setUseSoftMenu", |
| 53 ShowConsole: "showConsole" | 52 ShowConsole: "showConsole" |
| 54 } | 53 } |
| 55 | 54 |
| 56 InspectorFrontendHostAPI.EventDescriptors = [ | 55 InspectorFrontendHostAPI.EventDescriptors = [ |
| 57 [InspectorFrontendHostAPI.Events.AddExtensions, ["extensions"]], | 56 [InspectorFrontendHostAPI.Events.AddExtensions, ["extensions"]], |
| 58 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]], | 57 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]], |
| 59 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]], | 58 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]], |
| 60 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []], | 59 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []], |
| 61 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]], | 60 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]], |
| 62 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]], | 61 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]], |
| 63 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]], | 62 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]], |
| 64 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]], | 63 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]], |
| 65 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, ["messageChunk", "mes
sageSize"]], | 64 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, ["messageChunk", "mes
sageSize"]], |
| 66 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []], | 65 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []], |
| 67 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]], | 66 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]], |
| 68 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]], | 67 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]], |
| 69 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst
em"]], | 68 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst
em"]], |
| 70 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId",
"fileSystemPath", "totalWork"]], | 69 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId",
"fileSystemPath", "totalWork"]], |
| 71 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa
th", "worked"]], | 70 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa
th", "worked"]], |
| 72 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath
"]], | 71 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath
"]], |
| 73 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]], | 72 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]], |
| 74 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co
lumnNumber"]], | 73 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co
lumnNumber"]], |
| 75 [InspectorFrontendHostAPI.Events.SavedURL, ["url"]], | 74 [InspectorFrontendHostAPI.Events.SavedURL, ["url"]], |
| 76 [InspectorFrontendHostAPI.Events.SearchCompleted, ["requestId", "fileSystemP
ath", "files"]], | 75 [InspectorFrontendHostAPI.Events.SearchCompleted, ["requestId", "fileSystemP
ath", "files"]], |
| 77 [InspectorFrontendHostAPI.Events.SetInspectedTabId, ["tabId"]], | 76 [InspectorFrontendHostAPI.Events.SetInspectedTabId, ["tabId"]], |
| 78 [InspectorFrontendHostAPI.Events.SetToolbarColors, ["backgroundColor", "colo
r"]], | |
| 79 [InspectorFrontendHostAPI.Events.SetUseSoftMenu, ["useSoftMenu"]], | 77 [InspectorFrontendHostAPI.Events.SetUseSoftMenu, ["useSoftMenu"]], |
| 80 [InspectorFrontendHostAPI.Events.ShowConsole, []] | 78 [InspectorFrontendHostAPI.Events.ShowConsole, []] |
| 81 ]; | 79 ]; |
| 82 | 80 |
| 83 InspectorFrontendHostAPI.prototype = { | 81 InspectorFrontendHostAPI.prototype = { |
| 84 addFileSystem: function() { }, | 82 addFileSystem: function() { }, |
| 85 | 83 |
| 86 /** | 84 /** |
| 87 * @param {string} url | 85 * @param {string} url |
| 88 * @param {string} content | 86 * @param {string} content |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 /** | 254 /** |
| 257 * @return {boolean} | 255 * @return {boolean} |
| 258 */ | 256 */ |
| 259 isUnderTest: function() { }, | 257 isUnderTest: function() { }, |
| 260 | 258 |
| 261 /** | 259 /** |
| 262 * @return {boolean} | 260 * @return {boolean} |
| 263 */ | 261 */ |
| 264 isHostedMode: function() { } | 262 isHostedMode: function() { } |
| 265 } | 263 } |
| OLD | NEW |