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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Runtime.experiments.register('audits2', 'Audits 2.0', true); | 97 Runtime.experiments.register('audits2', 'Audits 2.0', true); |
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('nodeDebugging', 'Node debugging', true); | 106 Runtime.experiments.register('nodeDebugging', 'Node debugging', true); |
| 107 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
107 Runtime.experiments.register('persistence2', 'Persistence 2.0'); | 108 Runtime.experiments.register('persistence2', 'Persistence 2.0'); |
108 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); | 109 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); |
109 Runtime.experiments.register('requestBlocking', 'Request blocking', true); | 110 Runtime.experiments.register('requestBlocking', 'Request blocking', true); |
110 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti
meline', true); | 111 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti
meline', true); |
111 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes
on Timeline', true); | 112 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes
on Timeline', true); |
112 Runtime.experiments.register('sourceDiff', 'Source diff'); | 113 Runtime.experiments.register('sourceDiff', 'Source diff'); |
113 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; | 114 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; |
114 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); | 115 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); |
115 Runtime.experiments.register('timelineLandingPage', 'Timeline landing page')
; | 116 Runtime.experiments.register('timelineLandingPage', 'Timeline landing page')
; |
116 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco
rding perspectives UI'); | 117 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco
rding perspectives UI'); |
117 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); | 118 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); |
118 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); | 119 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); |
119 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); | 120 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); |
120 | 121 |
121 Runtime.experiments.cleanUpStaleExperiments(); | 122 Runtime.experiments.cleanUpStaleExperiments(); |
122 | 123 |
123 if (Host.isUnderTest(prefs)) { | 124 if (Host.isUnderTest(prefs)) { |
124 var testPath = JSON.parse(prefs['testPath'] || '""'); | 125 var testPath = JSON.parse(prefs['testPath'] || '""'); |
125 // Enable experiments for testing. | 126 // Enable experiments for testing. |
126 if (testPath.indexOf('accessibility/') !== -1) | 127 if (testPath.indexOf('accessibility/') !== -1) |
127 Runtime.experiments.enableForTest('accessibilityInspection'); | 128 Runtime.experiments.enableForTest('accessibilityInspection'); |
128 if (testPath.indexOf('css_tracker') !== -1) | 129 if (testPath.indexOf('css_tracker') !== -1) |
129 Runtime.experiments.enableForTest('cssTrackerPanel'); | 130 Runtime.experiments.enableForTest('cssTrackerPanel'); |
| 131 if (testPath.indexOf('console') !== -1) |
| 132 Runtime.experiments.enableForTest('objectPreviews'); |
130 } | 133 } |
131 | 134 |
132 Runtime.experiments.setDefaultExperiments( | 135 Runtime.experiments.setDefaultExperiments( |
133 ['timelineLandingPage', 'timelineRecordingPerspectives', 'persistenceVal
idation']); | 136 ['timelineLandingPage', 'timelineRecordingPerspectives', 'persistenceVal
idation']); |
134 } | 137 } |
135 | 138 |
136 /** | 139 /** |
137 * @suppressGlobalPropertiesCheck | 140 * @suppressGlobalPropertiesCheck |
138 */ | 141 */ |
139 _createAppUI() { | 142 _createAppUI() { |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 * @override | 981 * @override |
979 * @return {?Element} | 982 * @return {?Element} |
980 */ | 983 */ |
981 settingElement() { | 984 settingElement() { |
982 return UI.SettingsUI.createSettingCheckbox( | 985 return UI.SettingsUI.createSettingCheckbox( |
983 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
984 } | 987 } |
985 }; | 988 }; |
986 | 989 |
987 new Main.Main(); | 990 new Main.Main(); |
OLD | NEW |