Chromium Code Reviews| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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('liveSASS', 'Live SASS'); | 104 Runtime.experiments.register('liveSASS', 'Live SASS'); |
| 105 Runtime.experiments.register('networkGroupingRequests', 'Network request gro ups support', true); | 105 Runtime.experiments.register('networkGroupingRequests', 'Network request gro ups support', true); |
| 106 Runtime.experiments.register('objectPreviews', 'Object previews', true); | 106 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
| 107 Runtime.experiments.register('persistence2', 'Persistence 2.0'); | 107 Runtime.experiments.register('persistence2', 'Persistence 2.0'); |
| 108 Runtime.experiments.register('sourceDiff', 'Source diff'); | 108 Runtime.experiments.register('sourceDiff', 'Source diff'); |
| 109 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; | 109 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; |
| 110 | 110 |
| 111 // Timeline | 111 // Timeline |
| 112 Runtime.experiments.register('timelineColorByProduct', 'Timeline: color by p roduct', true); | 112 Runtime.experiments.register('timelineColorByProduct', 'Timeline: group and color by product', true); |
| 113 Runtime.experiments.register('timelineEventInitiators', 'Timeline: event ini tiators'); | 113 Runtime.experiments.register('timelineEventInitiators', 'Timeline: event ini tiators'); |
| 114 Runtime.experiments.register('timelineFlowEvents', 'Timeline: flow events', true); | 114 Runtime.experiments.register('timelineFlowEvents', 'Timeline: flow events', true); |
| 115 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: inva lidation tracking', true); | 115 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: inva lidation tracking', true); |
| 116 Runtime.experiments.register('timelineMultipleMainViews', 'Timeline: multipl e main views'); | 116 Runtime.experiments.register('timelineMultipleMainViews', 'Timeline: multipl e main views'); |
| 117 Runtime.experiments.register('timelinePaintTimingMarkers', 'Timeline: paint timing markers', true); | 117 Runtime.experiments.register('timelinePaintTimingMarkers', 'Timeline: paint timing markers', true); |
| 118 Runtime.experiments.register('timelinePerFrameTrack', 'Timeline: per-frame t racks', true); | 118 Runtime.experiments.register('timelinePerFrameTrack', 'Timeline: per-frame t racks', true); |
| 119 Runtime.experiments.register('timelineShowAllEvents', 'Timeline: show all ev ents', true); | 119 Runtime.experiments.register('timelineShowAllEvents', 'Timeline: show all ev ents', true); |
| 120 Runtime.experiments.register('timelineShowAllProcesses', 'Timeline: show all processes', true); | 120 Runtime.experiments.register('timelineShowAllProcesses', 'Timeline: show all processes', true); |
| 121 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline: tracing based JS profiler', 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); | 122 Runtime.experiments.register('timelineV8RuntimeCallStats', 'Timeline: V8 Run time Call Stats on Timeline', true); |
| 123 | 123 |
| 124 Runtime.experiments.cleanUpStaleExperiments(); | 124 Runtime.experiments.cleanUpStaleExperiments(); |
| 125 | 125 |
| 126 if (Host.isUnderTest(prefs)) { | 126 if (Host.isUnderTest(prefs)) { |
| 127 var testPath = JSON.parse(prefs['testPath'] || '""'); | 127 var testPath = JSON.parse(prefs['testPath'] || '""'); |
| 128 // Enable experiments for testing. | 128 // Enable experiments for testing. |
| 129 if (testPath.indexOf('accessibility/') !== -1) | 129 if (testPath.indexOf('accessibility/') !== -1) |
| 130 Runtime.experiments.enableForTest('accessibilityInspection'); | 130 Runtime.experiments.enableForTest('accessibilityInspection'); |
| 131 if (testPath.indexOf('audits2/') !== -1) | 131 if (testPath.indexOf('audits2/') !== -1) |
| 132 Runtime.experiments.enableForTest('audits2'); | 132 Runtime.experiments.enableForTest('audits2'); |
| 133 if (testPath.indexOf('coverage/') !== -1) | 133 if (testPath.indexOf('coverage/') !== -1) |
| 134 Runtime.experiments.enableForTest('cssTrackerPanel'); | 134 Runtime.experiments.enableForTest('cssTrackerPanel'); |
| 135 if (testPath.indexOf('changes/') !== -1) | 135 if (testPath.indexOf('changes/') !== -1) |
| 136 Runtime.experiments.enableForTest('changesDrawer'); | 136 Runtime.experiments.enableForTest('changesDrawer'); |
| 137 if (testPath.indexOf('sass/') !== -1) | 137 if (testPath.indexOf('sass/') !== -1) |
| 138 Runtime.experiments.enableForTest('liveSASS'); | 138 Runtime.experiments.enableForTest('liveSASS'); |
| 139 if (testPath.indexOf('tracing/') !== -1) | |
| 140 Runtime.experiments.enableForTest('timelineColorByProduct'); | |
|
caseq
2017/05/09 01:48:32
Let's rather do this in tests, use experiment.enab
alph
2017/05/09 02:00:14
Done.
| |
| 139 } | 141 } |
| 140 | 142 |
| 141 Runtime.experiments.setDefaultExperiments(['continueToLocationMarkers', 'aut oAttachToCrossProcessSubframes']); | 143 Runtime.experiments.setDefaultExperiments(['continueToLocationMarkers', 'aut oAttachToCrossProcessSubframes']); |
| 142 } | 144 } |
| 143 | 145 |
| 144 /** | 146 /** |
| 145 * @suppressGlobalPropertiesCheck | 147 * @suppressGlobalPropertiesCheck |
| 146 */ | 148 */ |
| 147 _createAppUI() { | 149 _createAppUI() { |
| 148 console.time('Main._createAppUI'); | 150 console.time('Main._createAppUI'); |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 949 * @override | 951 * @override |
| 950 * @return {?Element} | 952 * @return {?Element} |
| 951 */ | 953 */ |
| 952 settingElement() { | 954 settingElement() { |
| 953 return UI.SettingsUI.createSettingCheckbox( | 955 return UI.SettingsUI.createSettingCheckbox( |
| 954 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); | 956 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); |
| 955 } | 957 } |
| 956 }; | 958 }; |
| 957 | 959 |
| 958 new Main.Main(); | 960 new Main.Main(); |
| OLD | NEW |