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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 | 90 |
| 91 /** | 91 /** |
| 92 * @param {!Object<string, string>} prefs | 92 * @param {!Object<string, string>} prefs |
| 93 */ | 93 */ |
| 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('changesDrawer', 'File changes in drawer', true ); | |
|
lushnikov
2017/03/28 03:32:10
Changes drawer
einbinder
2017/03/28 23:51:04
Done.
| |
| 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('colorContrastRatio', 'Contrast ratio line in c olor picker', true); | 102 Runtime.experiments.register('colorContrastRatio', 'Contrast ratio line in c olor picker', true); |
| 102 Runtime.experiments.register('cssTrackerPanel', 'Coverage support'); | 103 Runtime.experiments.register('cssTrackerPanel', 'Coverage support'); |
| 103 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap auto-stepping'); | 104 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap auto-stepping'); |
| 104 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events on Timeline overview', true); | 105 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events on Timeline overview', true); |
| 105 Runtime.experiments.register('liveSASS', 'Live SASS'); | 106 Runtime.experiments.register('liveSASS', 'Live SASS'); |
| 106 Runtime.experiments.register('networkGroupingRequests', 'Network request gro ups support', true); | 107 Runtime.experiments.register('networkGroupingRequests', 'Network request gro ups support', true); |
| 107 Runtime.experiments.register('objectPreviews', 'Object previews', true); | 108 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
| 108 Runtime.experiments.register('persistence2', 'Persistence 2.0'); | 109 Runtime.experiments.register('persistence2', 'Persistence 2.0'); |
| 109 Runtime.experiments.register('persistenceValidation', 'Validate persistence bindings'); | 110 Runtime.experiments.register('persistenceValidation', 'Validate persistence bindings'); |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 127 var testPath = JSON.parse(prefs['testPath'] || '""'); | 128 var testPath = JSON.parse(prefs['testPath'] || '""'); |
| 128 // Enable experiments for testing. | 129 // Enable experiments for testing. |
| 129 if (testPath.indexOf('accessibility/') !== -1) | 130 if (testPath.indexOf('accessibility/') !== -1) |
| 130 Runtime.experiments.enableForTest('accessibilityInspection'); | 131 Runtime.experiments.enableForTest('accessibilityInspection'); |
| 131 if (testPath.indexOf('coverage') !== -1) | 132 if (testPath.indexOf('coverage') !== -1) |
| 132 Runtime.experiments.enableForTest('cssTrackerPanel'); | 133 Runtime.experiments.enableForTest('cssTrackerPanel'); |
| 133 if (testPath.indexOf('audits2/') !== -1) | 134 if (testPath.indexOf('audits2/') !== -1) |
| 134 Runtime.experiments.enableForTest('audits2'); | 135 Runtime.experiments.enableForTest('audits2'); |
| 135 if (testPath.indexOf('help/') !== -1) | 136 if (testPath.indexOf('help/') !== -1) |
| 136 Runtime.experiments.enableForTest('releaseNote'); | 137 Runtime.experiments.enableForTest('releaseNote'); |
| 138 if (testPath.indexOf('changes/') !== -1) | |
| 139 Runtime.experiments.enableForTest('changesDrawer'); | |
| 137 } | 140 } |
| 138 | 141 |
| 139 Runtime.experiments.setDefaultExperiments(['persistenceValidation']); | 142 Runtime.experiments.setDefaultExperiments(['persistenceValidation']); |
| 140 } | 143 } |
| 141 | 144 |
| 142 /** | 145 /** |
| 143 * @suppressGlobalPropertiesCheck | 146 * @suppressGlobalPropertiesCheck |
| 144 */ | 147 */ |
| 145 _createAppUI() { | 148 _createAppUI() { |
| 146 console.time('Main._createAppUI'); | 149 console.time('Main._createAppUI'); |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 953 * @override | 956 * @override |
| 954 * @return {?Element} | 957 * @return {?Element} |
| 955 */ | 958 */ |
| 956 settingElement() { | 959 settingElement() { |
| 957 return UI.SettingsUI.createSettingCheckbox( | 960 return UI.SettingsUI.createSettingCheckbox( |
| 958 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); | 961 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); |
| 959 } | 962 } |
| 960 }; | 963 }; |
| 961 | 964 |
| 962 new Main.Main(); | 965 new Main.Main(); |
| OLD | NEW |