| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); | 98 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); |
| 99 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); | 99 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); |
| 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('nodeDebugging', 'Node debugging', true); | 107 Runtime.experiments.register('nodeDebugging', 'Node debugging', true); |
| 108 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
| 108 Runtime.experiments.register('persistence2', 'Persistence 2.0'); | 109 Runtime.experiments.register('persistence2', 'Persistence 2.0'); |
| 109 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); | 110 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); |
| 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('sourceDiff', 'Source diff'); | 114 Runtime.experiments.register('sourceDiff', 'Source diff'); |
| 114 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; | 115 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; |
| 115 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); | 116 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); |
| 116 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); | 117 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); |
| 117 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); | 118 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); |
| 118 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); | 119 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); |
| 119 | 120 |
| 120 Runtime.experiments.cleanUpStaleExperiments(); | 121 Runtime.experiments.cleanUpStaleExperiments(); |
| 121 | 122 |
| 122 if (Host.isUnderTest(prefs)) { | 123 if (Host.isUnderTest(prefs)) { |
| 123 var testPath = JSON.parse(prefs['testPath'] || '""'); | 124 var testPath = JSON.parse(prefs['testPath'] || '""'); |
| 124 // Enable experiments for testing. | 125 // Enable experiments for testing. |
| 125 if (testPath.indexOf('accessibility/') !== -1) | 126 if (testPath.indexOf('accessibility/') !== -1) |
| 126 Runtime.experiments.enableForTest('accessibilityInspection'); | 127 Runtime.experiments.enableForTest('accessibilityInspection'); |
| 127 if (testPath.indexOf('css_tracker') !== -1) | 128 if (testPath.indexOf('css_tracker') !== -1) |
| 128 Runtime.experiments.enableForTest('cssTrackerPanel'); | 129 Runtime.experiments.enableForTest('cssTrackerPanel'); |
| 130 if (testPath.indexOf('console') !== -1) |
| 131 Runtime.experiments.enableForTest('objectPreviews'); |
| 129 } | 132 } |
| 130 | 133 |
| 131 Runtime.experiments.setDefaultExperiments(['persistenceValidation']); | 134 Runtime.experiments.setDefaultExperiments(['persistenceValidation']); |
| 132 } | 135 } |
| 133 | 136 |
| 134 /** | 137 /** |
| 135 * @suppressGlobalPropertiesCheck | 138 * @suppressGlobalPropertiesCheck |
| 136 */ | 139 */ |
| 137 _createAppUI() { | 140 _createAppUI() { |
| 138 console.time('Main._createAppUI'); | 141 console.time('Main._createAppUI'); |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 * @override | 984 * @override |
| 982 * @return {?Element} | 985 * @return {?Element} |
| 983 */ | 986 */ |
| 984 settingElement() { | 987 settingElement() { |
| 985 return UI.SettingsUI.createSettingCheckbox( | 988 return UI.SettingsUI.createSettingCheckbox( |
| 986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 989 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 987 } | 990 } |
| 988 }; | 991 }; |
| 989 | 992 |
| 990 new Main.Main(); | 993 new Main.Main(); |
| OLD | NEW |