Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2868583003: DevTools: make audits 2 a proper experiment that can be enabled by default. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/help/features.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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');
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);
99 Runtime.experiments.register('colorContrastRatio', 'Color contrast ratio lin e in color picker', true); 100 Runtime.experiments.register('colorContrastRatio', 'Color contrast ratio lin e in color picker', true);
100 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat ion markers', true); 101 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat ion markers', 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);
(...skipping 13 matching lines...) Expand all
119 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline: tracing based JS profiler', true); 120 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline: tracing based JS profiler', true);
120 Runtime.experiments.register('timelineV8RuntimeCallStats', 'Timeline: V8 Run time Call Stats on Timeline', true); 121 Runtime.experiments.register('timelineV8RuntimeCallStats', 'Timeline: V8 Run time Call Stats 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('coverage') !== -1) 130 if (testPath.indexOf('audits2/') !== -1)
131 Runtime.experiments.enableForTest('audits2');
132 if (testPath.indexOf('coverage/') !== -1)
130 Runtime.experiments.enableForTest('cssTrackerPanel'); 133 Runtime.experiments.enableForTest('cssTrackerPanel');
131 if (testPath.indexOf('changes/') !== -1) 134 if (testPath.indexOf('changes/') !== -1)
132 Runtime.experiments.enableForTest('changesDrawer'); 135 Runtime.experiments.enableForTest('changesDrawer');
133 if (testPath.indexOf('sass/') !== -1) 136 if (testPath.indexOf('sass/') !== -1)
134 Runtime.experiments.enableForTest('liveSASS'); 137 Runtime.experiments.enableForTest('liveSASS');
135 } 138 }
136 139
137 Runtime.experiments.setDefaultExperiments(['continueToLocationMarkers', 'aut oAttachToCrossProcessSubframes']); 140 Runtime.experiments.setDefaultExperiments(['continueToLocationMarkers', 'aut oAttachToCrossProcessSubframes']);
138 } 141 }
139 142
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 * @override 948 * @override
946 * @return {?Element} 949 * @return {?Element}
947 */ 950 */
948 settingElement() { 951 settingElement() {
949 return UI.SettingsUI.createSettingCheckbox( 952 return UI.SettingsUI.createSettingCheckbox(
950 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
951 } 954 }
952 }; 955 };
953 956
954 new Main.Main(); 957 new Main.Main();
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/help/features.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698