| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 InspectorFrontendHost.clearPreferences, storagePrefix); | 83 InspectorFrontendHost.clearPreferences, storagePrefix); |
| 84 Common.settings = new Common.Settings(globalStorage, localStorage); | 84 Common.settings = new Common.Settings(globalStorage, localStorage); |
| 85 if (!Host.isUnderTest(prefs)) | 85 if (!Host.isUnderTest(prefs)) |
| 86 new Common.VersionController().updateVersion(); | 86 new Common.VersionController().updateVersion(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 /** | 89 /** |
| 90 * @param {!Object<string, string>} prefs | 90 * @param {!Object<string, string>} prefs |
| 91 */ | 91 */ |
| 92 _initializeExperiments(prefs) { | 92 _initializeExperiments(prefs) { |
| 93 // Keep this sorted alphabetically: both keys and values. |
| 93 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe
ction'); | 94 Runtime.experiments.register('accessibilityInspection', 'Accessibility Inspe
ction'); |
| 94 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme
s'); | 95 Runtime.experiments.register('applyCustomStylesheet', 'Allow custom UI theme
s'); |
| 95 Runtime.experiments.register('audits2', 'Audits 2.0', true); | 96 Runtime.experiments.register('audits2', 'Audits 2.0', true); |
| 96 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); | 97 Runtime.experiments.register('autoAttachToCrossProcessSubframes', 'Auto-atta
ch to cross-process subframes', true); |
| 97 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); | 98 Runtime.experiments.register('blackboxJSFramesOnTimeline', 'Blackbox JavaScr
ipt frames on Timeline', true); |
| 98 Runtime.experiments.register('changesDrawer', 'Changes drawer', true); | 99 Runtime.experiments.register('changesDrawer', 'Changes drawer', true); |
| 100 Runtime.experiments.register('colorContrastRatio', 'Color contrast ratio lin
e in color picker', true); |
| 99 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat
ion markers', true); | 101 Runtime.experiments.register('continueToLocationMarkers', 'Continue to locat
ion markers', true); |
| 100 Runtime.experiments.register('colorContrastRatio', 'Contrast ratio line in c
olor picker', true); | |
| 101 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); | 102 Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap
auto-stepping'); |
| 102 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); | 103 Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events
on Timeline overview', true); |
| 103 Runtime.experiments.register('liveSASS', 'Live SASS'); | 104 Runtime.experiments.register('liveSASS', 'Live SASS'); |
| 104 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); | 105 Runtime.experiments.register('networkGroupingRequests', 'Network request gro
ups support', true); |
| 105 Runtime.experiments.register('objectPreviews', 'Object previews', true); | 106 Runtime.experiments.register('objectPreviews', 'Object previews', true); |
| 106 Runtime.experiments.register('persistence2', 'Persistence 2.0'); | 107 Runtime.experiments.register('persistence2', 'Persistence 2.0'); |
| 107 Runtime.experiments.register('persistenceValidation', 'Validate persistence
bindings'); | 108 Runtime.experiments.register('persistenceValidation', 'Persistence validatio
n'); |
| 108 Runtime.experiments.register('requestBlocking', 'Request blocking', true); | 109 Runtime.experiments.register('requestBlocking', 'Request blocking', true); |
| 109 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti
meline', true); | |
| 110 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes
on Timeline', true); | |
| 111 Runtime.experiments.register('timelinePaintTimingMarkers', 'Show paint timin
g markers on Timeline', true); | |
| 112 Runtime.experiments.register('sourceDiff', 'Source diff'); | 110 Runtime.experiments.register('sourceDiff', 'Source diff'); |
| 113 Runtime.experiments.register('timelineEventInitiators', 'Timeline event init
iators'); | |
| 114 Runtime.experiments.register('timelineFlowEvents', 'Timeline flow events', t
rue); | |
| 115 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; | 111 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true)
; |
| 116 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval
idation tracking', true); | 112 |
| 117 Runtime.experiments.register('timelineMultipleMainViews', 'Tabbed views on P
erformance panel'); | 113 // Timeline |
| 118 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b
ased JS profiler', true); | 114 Runtime.experiments.register('timelineEventInitiators', 'Timeline: event ini
tiators'); |
| 119 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call
Stats on Timeline', true); | 115 Runtime.experiments.register('timelineFlowEvents', 'Timeline: flow events',
true); |
| 120 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame
on Timeline', true); | 116 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: inva
lidation tracking', true); |
| 117 Runtime.experiments.register('timelineMultipleMainViews', 'Timeline: multipl
e main views'); |
| 118 Runtime.experiments.register('timelinePaintTimingMarkers', 'Timeline: paint
timing markers', true); |
| 119 Runtime.experiments.register('timelinePerFrameTrack', 'Timeline: per-frame t
racks', true); |
| 120 Runtime.experiments.register('timelineShowAllEvents', 'Timeline: show all ev
ents', true); |
| 121 Runtime.experiments.register('timelineShowAllProcesses', 'Timeline: show all
processes', true); |
| 122 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline: tracing
based JS profiler', true); |
| 123 Runtime.experiments.register('timelineV8RuntimeCallStats', 'Timeline: V8 Run
time Call Stats on Timeline', true); |
| 121 | 124 |
| 122 Runtime.experiments.cleanUpStaleExperiments(); | 125 Runtime.experiments.cleanUpStaleExperiments(); |
| 123 | 126 |
| 124 if (Host.isUnderTest(prefs)) { | 127 if (Host.isUnderTest(prefs)) { |
| 125 var testPath = JSON.parse(prefs['testPath'] || '""'); | 128 var testPath = JSON.parse(prefs['testPath'] || '""'); |
| 126 // Enable experiments for testing. | 129 // Enable experiments for testing. |
| 127 if (testPath.indexOf('accessibility/') !== -1) | 130 if (testPath.indexOf('accessibility/') !== -1) |
| 128 Runtime.experiments.enableForTest('accessibilityInspection'); | 131 Runtime.experiments.enableForTest('accessibilityInspection'); |
| 129 if (testPath.indexOf('coverage') !== -1) | 132 if (testPath.indexOf('coverage') !== -1) |
| 130 Runtime.experiments.enableForTest('cssTrackerPanel'); | 133 Runtime.experiments.enableForTest('cssTrackerPanel'); |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 * @override | 980 * @override |
| 978 * @return {?Element} | 981 * @return {?Element} |
| 979 */ | 982 */ |
| 980 settingElement() { | 983 settingElement() { |
| 981 return UI.SettingsUI.createSettingCheckbox( | 984 return UI.SettingsUI.createSettingCheckbox( |
| 982 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 985 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 983 } | 986 } |
| 984 }; | 987 }; |
| 985 | 988 |
| 986 new Main.Main(); | 989 new Main.Main(); |
| OLD | NEW |