OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /* eslint-disable indent */ | 5 /* eslint-disable indent */ |
6 (function(window) { | 6 (function(window) { |
7 | 7 |
8 // DevToolsAPI ---------------------------------------------------------------- | 8 // DevToolsAPI ---------------------------------------------------------------- |
9 | 9 |
10 /** | 10 /** |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
887 } | 887 } |
888 | 888 |
889 window.InspectorFrontendHost = new InspectorFrontendHostImpl(); | 889 window.InspectorFrontendHost = new InspectorFrontendHostImpl(); |
890 | 890 |
891 // DevToolsApp --------------------------------------------------------------- | 891 // DevToolsApp --------------------------------------------------------------- |
892 | 892 |
893 function installObjectObserve() | 893 function installObjectObserve() |
894 { | 894 { |
895 var properties = [ | 895 var properties = [ |
896 "advancedSearchConfig", "auditsPanelSplitViewState", "auditsSidebarWidth ", "blockedURLs", "breakpoints", "cacheDisabled", "colorFormat", "consoleHistory ", | 896 "advancedSearchConfig", "auditsPanelSplitViewState", "auditsSidebarWidth ", "blockedURLs", "breakpoints", "cacheDisabled", "colorFormat", "consoleHistory ", |
897 "consoleTimestampsEnabled", "cpuProfilerView", "cssSourceMapsEnabled", " currentDockState", "customColorPalette", "customDevicePresets", "customEmulatedD eviceList", | 897 "consoleTimestampsEnabled", "consoleBracketMatching", "cpuProfilerView", "cssSourceMapsEnabled", "currentDockState", "customColorPalette", "customDevice Presets", "customEmulatedDeviceList", |
dgozman
2016/09/14 21:20:17
Don't add new stuff here. It's for old frontends.
einbinder
2016/09/15 00:14:09
Oops.
| |
898 "customFormatters", "customUserAgent", "databaseTableViewVisibleColumns" , "dataGrid-cookiesTable", "dataGrid-DOMStorageItemsView", "debuggerSidebarHidde n", "disableDataSaverInfobar", | 898 "customFormatters", "customUserAgent", "databaseTableViewVisibleColumns" , "dataGrid-cookiesTable", "dataGrid-DOMStorageItemsView", "debuggerSidebarHidde n", "disableDataSaverInfobar", |
899 "disablePausedStateOverlay", "domBreakpoints", "domWordWrap", "elementsP anelSplitViewState", "elementsSidebarWidth", "emulation.deviceHeight", "emulatio n.deviceModeValue", | 899 "disablePausedStateOverlay", "domBreakpoints", "domWordWrap", "elementsP anelSplitViewState", "elementsSidebarWidth", "emulation.deviceHeight", "emulatio n.deviceModeValue", |
900 "emulation.deviceOrientationOverride", "emulation.deviceScale", "emulati on.deviceScaleFactor", "emulation.deviceUA", "emulation.deviceWidth", "emulation .geolocationOverride", | 900 "emulation.deviceOrientationOverride", "emulation.deviceScale", "emulati on.deviceScaleFactor", "emulation.deviceUA", "emulation.deviceWidth", "emulation .geolocationOverride", |
901 "emulation.showDeviceMode", "emulation.showRulers", "enableAsyncStackTra ces", "eventListenerBreakpoints", "fileMappingEntries", "fileSystemMapping", "Fi leSystemViewSidebarWidth", | 901 "emulation.showDeviceMode", "emulation.showRulers", "enableAsyncStackTra ces", "eventListenerBreakpoints", "fileMappingEntries", "fileSystemMapping", "Fi leSystemViewSidebarWidth", |
902 "fileSystemViewSplitViewState", "filterBar-consoleView", "filterBar-netw orkPanel", "filterBar-promisePane", "filterBar-timelinePanel", "frameViewerHideC hromeWindow", | 902 "fileSystemViewSplitViewState", "filterBar-consoleView", "filterBar-netw orkPanel", "filterBar-promisePane", "filterBar-timelinePanel", "frameViewerHideC hromeWindow", |
903 "heapSnapshotRetainersViewSize", "heapSnapshotSplitViewState", "hideColl ectedPromises", "hideNetworkMessages", "highlightNodeOnHoverInOverlay", "highRes olutionCpuProfiling", | 903 "heapSnapshotRetainersViewSize", "heapSnapshotSplitViewState", "hideColl ectedPromises", "hideNetworkMessages", "highlightNodeOnHoverInOverlay", "highRes olutionCpuProfiling", |
904 "inlineVariableValues", "Inspector.drawerSplitView", "Inspector.drawerSp litViewState", "InspectorView.panelOrder", "InspectorView.screencastSplitView", | 904 "inlineVariableValues", "Inspector.drawerSplitView", "Inspector.drawerSp litViewState", "InspectorView.panelOrder", "InspectorView.screencastSplitView", |
905 "InspectorView.screencastSplitViewState", "InspectorView.splitView", "In spectorView.splitViewState", "javaScriptDisabled", "jsSourceMapsEnabled", "lastA ctivePanel", "lastDockState", | 905 "InspectorView.screencastSplitViewState", "InspectorView.splitView", "In spectorView.splitViewState", "javaScriptDisabled", "jsSourceMapsEnabled", "lastA ctivePanel", "lastDockState", |
906 "lastSelectedSourcesSidebarPaneTab", "lastSnippetEvaluationIndex", "laye rDetailsSplitView", "layerDetailsSplitViewState", "layersPanelSplitViewState", " layersShowInternalLayers", | 906 "lastSelectedSourcesSidebarPaneTab", "lastSnippetEvaluationIndex", "laye rDetailsSplitView", "layerDetailsSplitViewState", "layersPanelSplitViewState", " layersShowInternalLayers", |
907 "layersSidebarWidth", "messageLevelFilters", "messageURLFilters", "monit oringXHREnabled", "navigatorGroupByFolder", "navigatorHidden", "networkColorCode ResourceTypes", | 907 "layersSidebarWidth", "messageLevelFilters", "messageURLFilters", "monit oringXHREnabled", "navigatorGroupByFolder", "navigatorHidden", "networkColorCode ResourceTypes", |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1177 | 1177 |
1178 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1178 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
1179 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; | 1179 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; |
1180 DOMTokenList.prototype.toggle = function(token, force) | 1180 DOMTokenList.prototype.toggle = function(token, force) |
1181 { | 1181 { |
1182 if (arguments.length === 1) | 1182 if (arguments.length === 1) |
1183 force = !this.contains(token); | 1183 force = !this.contains(token); |
1184 return this.__originalDOMTokenListToggle(token, !!force); | 1184 return this.__originalDOMTokenListToggle(token, !!force); |
1185 } | 1185 } |
1186 } | 1186 } |
OLD | NEW |