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

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

Issue 2472213005: DevTools: introduce "Track CSS Usage" experiment (Closed)
Patch Set: Unused CSS highlight in sources panel Created 4 years, 1 month 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
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true); 106 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true);
107 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true); 107 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true);
108 Runtime.experiments.register('securityPanel', 'Security panel'); 108 Runtime.experiments.register('securityPanel', 'Security panel');
109 Runtime.experiments.register('sourceDiff', 'Source diff'); 109 Runtime.experiments.register('sourceDiff', 'Source diff');
110 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; 110 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ;
111 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t rue); 111 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t rue);
112 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true); 112 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true);
113 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI'); 113 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI');
114 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true); 114 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true);
115 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true); 115 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true);
116 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.');
116 117
117 Runtime.experiments.cleanUpStaleExperiments(); 118 Runtime.experiments.cleanUpStaleExperiments();
118 119
119 if (InspectorFrontendHost.isUnderTest()) { 120 if (InspectorFrontendHost.isUnderTest()) {
120 var testPath = JSON.parse(prefs['testPath'] || '""'); 121 var testPath = JSON.parse(prefs['testPath'] || '""');
121 // Enable experiments for testing. 122 // Enable experiments for testing.
122 if (testPath.indexOf('layers/') !== -1) 123 if (testPath.indexOf('layers/') !== -1)
123 Runtime.experiments.enableForTest('layersPanel'); 124 Runtime.experiments.enableForTest('layersPanel');
124 if (testPath.indexOf('timeline/') !== -1 || testPath.indexOf('layers/') != = -1) 125 if (testPath.indexOf('timeline/') !== -1 || testPath.indexOf('layers/') != = -1)
125 Runtime.experiments.enableForTest('layersPanel'); 126 Runtime.experiments.enableForTest('layersPanel');
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 * @override 1042 * @override
1042 * @return {?Element} 1043 * @return {?Element}
1043 */ 1044 */
1044 settingElement() { 1045 settingElement() {
1045 return WebInspector.SettingsUI.createSettingCheckbox( 1046 return WebInspector.SettingsUI.createSettingCheckbox(
1046 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers')); 1047 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers'));
1047 } 1048 }
1048 }; 1049 };
1049 1050
1050 new WebInspector.Main(); 1051 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698