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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Keep this sorted alphabetically: both keys and values. |
94 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe
ction'); | 94 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe
ction'); |
95 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme
s'); | 95 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme
s'); |
96 Runtime.experiments.register('audits2', 'Audits 2.0', true); | |
97 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); | 96 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); |
98 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); | 97 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); |
99 Runtime.experiments.register('changesDrawer', 'Changes drawer', true); | 98 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('colorContrastRatio', 'Color contrast ratio lin
e in color picker', true); |
101 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat
ion markers', true); | 100 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat
ion markers', true); |
102 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); | 101 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); |
103 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); | 102 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); |
104 Runtime.experiments.register('liveSASS', 'Live SASS'); | 103 Runtime.experiments.register('liveSASS', 'Live SASS'); |
105 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); | 104 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); |
106 Runtime.experiments.register('objectPreviews', 'Object previews', true); | 105 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
(...skipping 15 matching lines...) Expand all Loading... |
122 | 121 |
123 Runtime.experiments.cleanUpStaleExperiments(); | 122 Runtime.experiments.cleanUpStaleExperiments(); |
124 | 123 |
125 if (Host.isUnderTest(prefs)) { | 124 if (Host.isUnderTest(prefs)) { |
126 var testPath = JSON.parse(prefs['testPath'] || '""'); | 125 var testPath = JSON.parse(prefs['testPath'] || '""'); |
127 // Enable experiments for testing. | 126 // Enable experiments for testing. |
128 if (testPath.indexOf('accessibility/') !== -1) | 127 if (testPath.indexOf('accessibility/') !== -1) |
129 Runtime.experiments.enableForTest('accessibilityInspection'); | 128 Runtime.experiments.enableForTest('accessibilityInspection'); |
130 if (testPath.indexOf('coverage') !== -1) | 129 if (testPath.indexOf('coverage') !== -1) |
131 Runtime.experiments.enableForTest('cssTrackerPanel'); | 130 Runtime.experiments.enableForTest('cssTrackerPanel'); |
132 if (testPath.indexOf('audits2/') !== -1) | |
133 Runtime.experiments.enableForTest('audits2'); | |
134 if (testPath.indexOf('changes/') !== -1) | 131 if (testPath.indexOf('changes/') !== -1) |
135 Runtime.experiments.enableForTest('changesDrawer'); | 132 Runtime.experiments.enableForTest('changesDrawer'); |
136 if (testPath.indexOf('sass/') !== -1) | 133 if (testPath.indexOf('sass/') !== -1) |
137 Runtime.experiments.enableForTest('liveSASS'); | 134 Runtime.experiments.enableForTest('liveSASS'); |
138 } | 135 } |
139 | 136 |
140 Runtime.experiments.setDefaultExperiments(['continueToLocationMarkers']); | 137 Runtime.experiments.setDefaultExperiments(['continueToLocationMarkers']); |
141 } | 138 } |
142 | 139 |
143 /** | 140 /** |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 * @override | 945 * @override |
949 * @return {?Element} | 946 * @return {?Element} |
950 */ | 947 */ |
951 settingElement() { | 948 settingElement() { |
952 return UI.SettingsUI.createSettingCheckbox( | 949 return UI.SettingsUI.createSettingCheckbox( |
953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 950 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
954 } | 951 } |
955 }; | 952 }; |
956 | 953 |
957 new Main.Main(); | 954 new Main.Main(); |
OLD | NEW |