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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } | 139 } |
140 | 140 |
141 Runtime.experiments.setDefaultExperiments( | 141 Runtime.experiments.setDefaultExperiments( |
142 ['continueToLocationMarkers', 'autoAttachToCrossProcessSubframes', 'obje
ctPreviews']); | 142 ['continueToLocationMarkers', 'autoAttachToCrossProcessSubframes', 'obje
ctPreviews', 'audits2']); |
143 } | 143 } |
144 | 144 |
145 /** | 145 /** |
146 * @suppressGlobalPropertiesCheck | 146 * @suppressGlobalPropertiesCheck |
147 */ | 147 */ |
148 _createAppUI() { | 148 _createAppUI() { |
149 console.time('Main._createAppUI'); | 149 console.time('Main._createAppUI'); |
150 | 150 |
151 UI.viewManager = new UI.ViewManager(); | 151 UI.viewManager = new UI.ViewManager(); |
152 | 152 |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 * @override | 950 * @override |
951 * @return {?Element} | 951 * @return {?Element} |
952 */ | 952 */ |
953 settingElement() { | 953 settingElement() { |
954 return UI.SettingsUI.createSettingCheckbox( | 954 return UI.SettingsUI.createSettingCheckbox( |
955 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 955 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
956 } | 956 } |
957 }; | 957 }; |
958 | 958 |
959 new Main.Main(); | 959 new Main.Main(); |
OLD | NEW |