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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 InspectorFrontendHost.clearPreferences, storagePrefix); | 83 InspectorFrontendHost.clearPreferences, storagePrefix); |
84 Common.settings = new Common.Settings(globalStorage, localStorage); | 84 Common.settings = new Common.Settings(globalStorage, localStorage); |
85 if (!Host.isUnderTest(prefs)) | 85 if (!Host.isUnderTest(prefs)) |
86 new Common.VersionController().updateVersion(); | 86 new Common.VersionController().updateVersion(); |
87 } | 87 } |
88 | 88 |
89 /** | 89 /** |
90 * @param {!Object<string, string>} prefs | 90 * @param {!Object<string, string>} prefs |
91 */ | 91 */ |
92 _initializeExperiments(prefs) { | 92 _initializeExperiments(prefs) { |
| 93 // Keep this sorted alphabetically: both keys and values. |
93 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe
ction'); | 94 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe
ction'); |
94 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme
s'); | 95 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme
s'); |
95 Runtime.experiments.register('audits2', 'Audits 2.0', true); | 96 Runtime.experiments.register('audits2', 'Audits 2.0', true); |
96 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); | 97 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); |
97 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); | 98 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); |
98 Runtime.experiments.register('changesDrawer', 'Changes drawer', true); | 99 Runtime.experiments.register('changesDrawer', 'Changes drawer', true); |
| 100 Runtime.experiments.register('colorContrastRatio', 'Color contrast ratio lin
e in color picker', true); |
99 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat
ion markers', true); | 101 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat
ion markers', true); |
100 Runtime.experiments.register('colorContrastRatio', 'Contrast ratio line in c
olor picker', true); | |
101 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); | 102 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); |
102 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); | 103 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); |
103 Runtime.experiments.register('liveSASS', 'Live SASS'); | 104 Runtime.experiments.register('liveSASS', 'Live SASS'); |
104 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); | 105 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); |
105 Runtime.experiments.register('objectPreviews', 'Object previews', true); | 106 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
106 Runtime.experiments.register('persistence2', 'Persistence 2.0'); | 107 Runtime.experiments.register('persistence2', 'Persistence 2.0'); |
107 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); | 108 Runtime.experiments.register('persistenceValidation', 'Persistence validatio
n'); |
108 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti
meline', true); | |
109 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes
on Timeline', true); | |
110 Runtime.experiments.register('timelinePaintTimingMarkers', 'Show paint timin
g markers on Timeline', true); | |
111 Runtime.experiments.register('sourceDiff', 'Source diff'); | 109 Runtime.experiments.register('sourceDiff', 'Source diff'); |
112 Runtime.experiments.register('timelineEventInitiators', 'Timeline event init
iators'); | |
113 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t
rue); | |
114 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; | 110 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; |
115 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); | 111 |
116 Runtime.experiments.register('timelineMultipleMainViews', 'Tabbed views on P
erformance panel'); | 112 // Timeline |
117 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); | 113 Runtime.experiments.register('timelineEventInitiators', 'Timeline: event ini
tiators'); |
118 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); | 114 Runtime.experiments.register('timelineFlowEvents', 'Timeline: flow events',
true); |
119 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); | 115 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: inva
lidation tracking', true); |
| 116 Runtime.experiments.register('timelineMultipleMainViews', 'Timeline: multipl
e main views'); |
| 117 Runtime.experiments.register('timelinePaintTimingMarkers', 'Timeline: paint
timing markers', true); |
| 118 Runtime.experiments.register('timelinePerFrameTrack', 'Timeline: per-frame t
racks', true); |
| 119 Runtime.experiments.register('timelineShowAllEvents', 'Timeline: show all ev
ents', true); |
| 120 Runtime.experiments.register('timelineShowAllProcesses', 'Timeline: show all
processes', true); |
| 121 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline: tracing
based JS profiler', true); |
| 122 Runtime.experiments.register('timelineV8RuntimeCallStats', 'Timeline: V8 Run
time Call Stats on Timeline', true); |
120 | 123 |
121 Runtime.experiments.cleanUpStaleExperiments(); | 124 Runtime.experiments.cleanUpStaleExperiments(); |
122 | 125 |
123 if (Host.isUnderTest(prefs)) { | 126 if (Host.isUnderTest(prefs)) { |
124 var testPath = JSON.parse(prefs['testPath'] || '""'); | 127 var testPath = JSON.parse(prefs['testPath'] || '""'); |
125 // Enable experiments for testing. | 128 // Enable experiments for testing. |
126 if (testPath.indexOf('accessibility/') !== -1) | 129 if (testPath.indexOf('accessibility/') !== -1) |
127 Runtime.experiments.enableForTest('accessibilityInspection'); | 130 Runtime.experiments.enableForTest('accessibilityInspection'); |
128 if (testPath.indexOf('coverage') !== -1) | 131 if (testPath.indexOf('coverage') !== -1) |
129 Runtime.experiments.enableForTest('cssTrackerPanel'); | 132 Runtime.experiments.enableForTest('cssTrackerPanel'); |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 * @override | 977 * @override |
975 * @return {?Element} | 978 * @return {?Element} |
976 */ | 979 */ |
977 settingElement() { | 980 settingElement() { |
978 return UI.SettingsUI.createSettingCheckbox( | 981 return UI.SettingsUI.createSettingCheckbox( |
979 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 982 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
980 } | 983 } |
981 }; | 984 }; |
982 | 985 |
983 new Main.Main(); | 986 new Main.Main(); |
OLD | NEW |