| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 Runtime.experiments.register('colorContrastRatio', 'Contrast ratio line in c
olor picker', true); | 100 Runtime.experiments.register('colorContrastRatio', 'Contrast ratio line in c
olor picker', true); |
| 101 Runtime.experiments.register('continueToFirstInvocation', 'Continue to first
invocation', true); | 101 Runtime.experiments.register('continueToFirstInvocation', 'Continue to first
invocation', true); |
| 102 Runtime.experiments.register('cssTrackerPanel', 'Panel that tracks the usage
of CSS rules.'); | 102 Runtime.experiments.register('cssTrackerPanel', 'Panel that tracks the usage
of CSS rules.'); |
| 103 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); | 103 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); |
| 104 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); | 104 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); |
| 105 Runtime.experiments.register('liveSASS', 'Live SASS'); | 105 Runtime.experiments.register('liveSASS', 'Live SASS'); |
| 106 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); | 106 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); |
| 107 Runtime.experiments.register('objectPreviews', 'Object previews', true); | 107 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
| 108 Runtime.experiments.register('persistence2', 'Persistence 2.0'); | 108 Runtime.experiments.register('persistence2', 'Persistence 2.0'); |
| 109 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); | 109 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); |
| 110 Runtime.experiments.register('releaseNote', 'Release note', true); |
| 110 Runtime.experiments.register('requestBlocking', 'Request blocking', true); | 111 Runtime.experiments.register('requestBlocking', 'Request blocking', true); |
| 111 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti
meline', true); | 112 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti
meline', true); |
| 112 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes
on Timeline', true); | 113 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes
on Timeline', true); |
| 113 Runtime.experiments.register('timelinePaintTimingMarkers', 'Show paint timin
g markers on Timeline', true); | 114 Runtime.experiments.register('timelinePaintTimingMarkers', 'Show paint timin
g markers on Timeline', true); |
| 114 Runtime.experiments.register('sourceDiff', 'Source diff'); | 115 Runtime.experiments.register('sourceDiff', 'Source diff'); |
| 115 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; | 116 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; |
| 116 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); | 117 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); |
| 117 Runtime.experiments.register('timelineMultipleMainViews', 'Timeline with mul
tiple main views'); | 118 Runtime.experiments.register('timelineMultipleMainViews', 'Timeline with mul
tiple main views'); |
| 118 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); | 119 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); |
| 119 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); | 120 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); |
| 120 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); | 121 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); |
| 121 | 122 |
| 122 Runtime.experiments.cleanUpStaleExperiments(); | 123 Runtime.experiments.cleanUpStaleExperiments(); |
| 123 | 124 |
| 124 if (Host.isUnderTest(prefs)) { | 125 if (Host.isUnderTest(prefs)) { |
| 125 var testPath = JSON.parse(prefs['testPath'] || '""'); | 126 var testPath = JSON.parse(prefs['testPath'] || '""'); |
| 126 // Enable experiments for testing. | 127 // Enable experiments for testing. |
| 127 if (testPath.indexOf('accessibility/') !== -1) | 128 if (testPath.indexOf('accessibility/') !== -1) |
| 128 Runtime.experiments.enableForTest('accessibilityInspection'); | 129 Runtime.experiments.enableForTest('accessibilityInspection'); |
| 129 if (testPath.indexOf('css_tracker') !== -1) | 130 if (testPath.indexOf('css_tracker') !== -1) |
| 130 Runtime.experiments.enableForTest('cssTrackerPanel'); | 131 Runtime.experiments.enableForTest('cssTrackerPanel'); |
| 131 if (testPath.indexOf('audits2/') !== -1) | 132 if (testPath.indexOf('audits2/') !== -1) |
| 132 Runtime.experiments.enableForTest('audits2'); | 133 Runtime.experiments.enableForTest('audits2'); |
| 134 if (testPath.indexOf('help/') !== -1) |
| 135 Runtime.experiments.enableForTest('releaseNote'); |
| 133 } | 136 } |
| 134 | 137 |
| 135 Runtime.experiments.setDefaultExperiments(['persistenceValidation', 'timelin
eMultipleMainViews']); | 138 Runtime.experiments.setDefaultExperiments(['persistenceValidation', 'timelin
eMultipleMainViews']); |
| 136 } | 139 } |
| 137 | 140 |
| 138 /** | 141 /** |
| 139 * @suppressGlobalPropertiesCheck | 142 * @suppressGlobalPropertiesCheck |
| 140 */ | 143 */ |
| 141 _createAppUI() { | 144 _createAppUI() { |
| 142 console.time('Main._createAppUI'); | 145 console.time('Main._createAppUI'); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol
atedFileSystemManager); | 182 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol
atedFileSystemManager); |
| 180 | 183 |
| 181 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); | 184 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); |
| 182 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); | 185 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); |
| 183 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa
nager, Workspace.workspace); | 186 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa
nager, Workspace.workspace); |
| 184 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD
K.targetManager, Workspace.workspace); | 187 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD
K.targetManager, Workspace.workspace); |
| 185 Bindings.breakpointManager = | 188 Bindings.breakpointManager = |
| 186 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); | 189 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); |
| 187 Extensions.extensionServer = new Extensions.ExtensionServer(); | 190 Extensions.extensionServer = new Extensions.ExtensionServer(); |
| 188 | 191 |
| 192 Help.releaseNoteManager = new Help.ReleaseNoteManager(); |
| 193 |
| 189 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemManag
er, Workspace.workspace); | 194 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemManag
er, Workspace.workspace); |
| 190 Persistence.persistence = | 195 Persistence.persistence = |
| 191 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Workspace.fileSystemMapping); | 196 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Workspace.fileSystemMapping); |
| 192 | 197 |
| 193 new Main.OverlayController(); | 198 new Main.OverlayController(); |
| 194 new Main.ExecutionContextSelector(SDK.targetManager, UI.context); | 199 new Main.ExecutionContextSelector(SDK.targetManager, UI.context); |
| 195 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); | 200 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); |
| 196 | 201 |
| 197 new Main.Main.PauseListener(); | 202 new Main.Main.PauseListener(); |
| 198 new Main.Main.InspectedNodeRevealer(); | 203 new Main.Main.InspectedNodeRevealer(); |
| (...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 * @override | 981 * @override |
| 977 * @return {?Element} | 982 * @return {?Element} |
| 978 */ | 983 */ |
| 979 settingElement() { | 984 settingElement() { |
| 980 return UI.SettingsUI.createSettingCheckbox( | 985 return UI.SettingsUI.createSettingCheckbox( |
| 981 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 982 } | 987 } |
| 983 }; | 988 }; |
| 984 | 989 |
| 985 new Main.Main(); | 990 new Main.Main(); |
| OLD | NEW |