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

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

Issue 2550563002: [DevTools] Remove obsolete experiment flags. (Closed)
Patch Set: rebased Created 4 years 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js » ('j') | 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 _initializeExperiments(prefs) { 94 _initializeExperiments(prefs) {
95 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe ction'); 95 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe ction');
96 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme s'); 96 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme s');
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('emptySourceMapAutoStepping', 'Empty sourcemap auto-stepping'); 102 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap auto-stepping');
103 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events on Timeline overview', true); 103 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events on Timeline overview', true);
104 Runtime.experiments.register('inspectTooltip', 'Dark inspect element tooltip ');
105 Runtime.experiments.register('liveSASS', 'Live SASS'); 104 Runtime.experiments.register('liveSASS', 'Live SASS');
106 Runtime.experiments.register('nodeDebugging', 'Node debugging', true); 105 Runtime.experiments.register('nodeDebugging', 'Node debugging', true);
107 Runtime.experiments.register('persistence2', 'Persistence 2.0'); 106 Runtime.experiments.register('persistence2', 'Persistence 2.0');
108 Runtime.experiments.register('privateScriptInspection', 'Private script insp ection'); 107 Runtime.experiments.register('privateScriptInspection', 'Private script insp ection');
109 Runtime.experiments.register('requestBlocking', 'Request blocking', true); 108 Runtime.experiments.register('requestBlocking', 'Request blocking', true);
110 Runtime.experiments.register('resolveVariableNames', 'Resolve variable names ');
111 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true); 109 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true);
112 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true); 110 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true);
113 Runtime.experiments.register('securityPanel', 'Security panel');
114 Runtime.experiments.register('sourceDiff', 'Source diff'); 111 Runtime.experiments.register('sourceDiff', 'Source diff');
115 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; 112 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ;
116 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true); 113 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true);
117 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI'); 114 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI');
118 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true); 115 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true);
119 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true); 116 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true);
120 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.'); 117 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.');
121 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame on Timeline', true); 118 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame on Timeline', true);
122 119
123 Runtime.experiments.cleanUpStaleExperiments(); 120 Runtime.experiments.cleanUpStaleExperiments();
124 121
125 if (Host.isUnderTest(prefs)) { 122 if (Host.isUnderTest(prefs)) {
126 var testPath = JSON.parse(prefs['testPath'] || '""'); 123 var testPath = JSON.parse(prefs['testPath'] || '""');
127 // Enable experiments for testing. 124 // Enable experiments for testing.
128 if (testPath.indexOf('layers/') !== -1)
129 Runtime.experiments.enableForTest('layersPanel');
130 if (testPath.indexOf('timeline/') !== -1 || testPath.indexOf('layers/') != = -1)
131 Runtime.experiments.enableForTest('layersPanel');
132 if (testPath.indexOf('security/') !== -1)
133 Runtime.experiments.enableForTest('securityPanel');
134 if (testPath.indexOf('accessibility/') !== -1) 125 if (testPath.indexOf('accessibility/') !== -1)
135 Runtime.experiments.enableForTest('accessibilityInspection'); 126 Runtime.experiments.enableForTest('accessibilityInspection');
136 } 127 }
137 128
138 Runtime.experiments.setDefaultExperiments( 129 Runtime.experiments.setDefaultExperiments(['timelineRecordingPerspectives']) ;
139 ['inspectTooltip', 'securityPanel', 'resolveVariableNames', 'timelineRec ordingPerspectives']);
140 } 130 }
141 131
142 /** 132 /**
143 * @suppressGlobalPropertiesCheck 133 * @suppressGlobalPropertiesCheck
144 */ 134 */
145 _createAppUI() { 135 _createAppUI() {
146 console.time('Main._createAppUI'); 136 console.time('Main._createAppUI');
147 137
148 UI.viewManager = new UI.ViewManager(); 138 UI.viewManager = new UI.ViewManager();
149 139
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 * @override 972 * @override
983 * @return {?Element} 973 * @return {?Element}
984 */ 974 */
985 settingElement() { 975 settingElement() {
986 return UI.SettingsUI.createSettingCheckbox( 976 return UI.SettingsUI.createSettingCheckbox(
987 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 977 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
988 } 978 }
989 }; 979 };
990 980
991 new Main.Main(); 981 new Main.Main();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698