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

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

Issue 2526013002: [DevTools] Added inline breakpoints (Closed)
Patch Set: Created 4 years 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 /** 69 /**
70 * @param {!Object<string, string>} prefs 70 * @param {!Object<string, string>} prefs
71 * Note: this function is called from testSettings in Tests.js. 71 * Note: this function is called from testSettings in Tests.js.
72 */ 72 */
73 _createSettings(prefs) { 73 _createSettings(prefs) {
74 this._initializeExperiments(prefs); 74 this._initializeExperiments(prefs);
75 var storagePrefix = ''; 75 var storagePrefix = '';
76 if (Host.isCustomDevtoolsFrontend()) 76 if (Host.isCustomDevtoolsFrontend())
77 storagePrefix = '__custom__'; 77 storagePrefix = '__custom__';
78 else if ( 78 else if (!Runtime.queryParam('can_dock') && !!Runtime.queryParam('debugFront end') && !Host.isUnderTest(prefs))
79 !Runtime.queryParam('can_dock') && !!Runtime.queryParam('debugFrontend') &&
80 !Host.isUnderTest(prefs))
81 storagePrefix = '__bundled__'; 79 storagePrefix = '__bundled__';
82 var clearLocalStorage = window.localStorage ? window.localStorage.clear.bind (window.localStorage) : undefined; 80 var clearLocalStorage = window.localStorage ? window.localStorage.clear.bind (window.localStorage) : undefined;
83 var localStorage = 81 var localStorage =
84 new Common.SettingsStorage(window.localStorage || {}, undefined, undefin ed, clearLocalStorage, storagePrefix); 82 new Common.SettingsStorage(window.localStorage || {}, undefined, undefin ed, clearLocalStorage, storagePrefix);
85 var globalStorage = new Common.SettingsStorage( 83 var globalStorage = new Common.SettingsStorage(
86 prefs, InspectorFrontendHost.setPreference, InspectorFrontendHost.remove Preference, 84 prefs, InspectorFrontendHost.setPreference, InspectorFrontendHost.remove Preference,
87 InspectorFrontendHost.clearPreferences, storagePrefix); 85 InspectorFrontendHost.clearPreferences, storagePrefix);
88 Common.settings = new Common.Settings(globalStorage, localStorage); 86 Common.settings = new Common.Settings(globalStorage, localStorage);
89 if (!Host.isUnderTest(prefs)) 87 if (!Host.isUnderTest(prefs))
90 new Common.VersionController().updateVersion(); 88 new Common.VersionController().updateVersion();
(...skipping 15 matching lines...) Expand all
106 Runtime.experiments.register('layoutEditor', 'Layout editor', true); 104 Runtime.experiments.register('layoutEditor', 'Layout editor', true);
107 Runtime.experiments.register('inspectTooltip', 'Dark inspect element tooltip '); 105 Runtime.experiments.register('inspectTooltip', 'Dark inspect element tooltip ');
108 Runtime.experiments.register('liveSASS', 'Live SASS'); 106 Runtime.experiments.register('liveSASS', 'Live SASS');
109 Runtime.experiments.register('nodeDebugging', 'Node debugging', true); 107 Runtime.experiments.register('nodeDebugging', 'Node debugging', true);
110 Runtime.experiments.register('persistence2', 'Persistence 2.0'); 108 Runtime.experiments.register('persistence2', 'Persistence 2.0');
111 Runtime.experiments.register('privateScriptInspection', 'Private script insp ection'); 109 Runtime.experiments.register('privateScriptInspection', 'Private script insp ection');
112 Runtime.experiments.register('requestBlocking', 'Request blocking', true); 110 Runtime.experiments.register('requestBlocking', 'Request blocking', true);
113 Runtime.experiments.register('resolveVariableNames', 'Resolve variable names '); 111 Runtime.experiments.register('resolveVariableNames', 'Resolve variable names ');
114 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true); 112 Runtime.experiments.register('timelineShowAllEvents', 'Show all events on Ti meline', true);
115 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true); 113 Runtime.experiments.register('timelineShowAllProcesses', 'Show all processes on Timeline', true);
114 Runtime.experiments.register('inlineBreakpoints', 'Show inline breakpoints') ;
116 Runtime.experiments.register('securityPanel', 'Security panel'); 115 Runtime.experiments.register('securityPanel', 'Security panel');
117 Runtime.experiments.register('sourceDiff', 'Source diff'); 116 Runtime.experiments.register('sourceDiff', 'Source diff');
118 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ; 117 Runtime.experiments.register('terminalInDrawer', 'Terminal in drawer', true) ;
119 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true); 118 Runtime.experiments.register('timelineInvalidationTracking', 'Timeline inval idation tracking', true);
120 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI'); 119 Runtime.experiments.register('timelineRecordingPerspectives', 'Timeline reco rding perspectives UI');
121 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true); 120 Runtime.experiments.register('timelineTracingJSProfile', 'Timeline tracing b ased JS profiler', true);
122 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true); 121 Runtime.experiments.register('timelineV8RuntimeCallStats', 'V8 Runtime Call Stats on Timeline', true);
123 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.'); 122 Runtime.experiments.register('timelineRuleUsageRecording', 'Track CSS rules usage while recording Timeline.');
124 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame on Timeline', true); 123 Runtime.experiments.register('timelinePerFrameTrack', 'Show track per frame on Timeline', true);
125 124
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 * @override 991 * @override
993 * @return {?Element} 992 * @return {?Element}
994 */ 993 */
995 settingElement() { 994 settingElement() {
996 return UI.SettingsUI.createSettingCheckbox( 995 return UI.SettingsUI.createSettingCheckbox(
997 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 996 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
998 } 997 }
999 }; 998 };
1000 999
1001 new Main.Main(); 1000 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698