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

Side by Side Diff: Source/devtools/front_end/common/Settings.js

Issue 341543003: DevTools: make responsive design a master switch for emulation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); 83 this.messageLevelFilters = this.createSetting("messageLevelFilters", {});
84 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW henDockedToRight", true); 84 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW henDockedToRight", true);
85 this.visiblePanels = this.createSetting("visiblePanels", {}); 85 this.visiblePanels = this.createSetting("visiblePanels", {});
86 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); 86 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false);
87 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor", false); 87 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor", false);
88 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal se); 88 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal se);
89 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte rn", ""); 89 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte rn", "");
90 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled", false); 90 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled", false);
91 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f alse); 91 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f alse);
92 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f alse); 92 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f alse);
93 93 this.responsiveDesignEnabled = this.createSetting("responsiveDesignEnabled", true);
94 this.responsiveDesign = {};
95 this.responsiveDesign.enabled = this.createSetting("responsiveDesign.enabled ", false);
96 } 94 }
97 95
98 WebInspector.Settings.prototype = { 96 WebInspector.Settings.prototype = {
99 /** 97 /**
100 * @param {string} key 98 * @param {string} key
101 * @param {*} defaultValue 99 * @param {*} defaultValue
102 * @return {!WebInspector.Setting} 100 * @return {!WebInspector.Setting}
103 */ 101 */
104 createSetting: function(key, defaultValue) 102 createSetting: function(key, defaultValue)
105 { 103 {
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 this.devicesPanel = this._createExperiment("devicesPanel", "Devices panel", true); 312 this.devicesPanel = this._createExperiment("devicesPanel", "Devices panel", true);
315 this.disableAgentsWhenProfile = this._createExperiment("disableAgentsWhenPro file", "Disable other agents and UI when profiler is active", true); 313 this.disableAgentsWhenProfile = this._createExperiment("disableAgentsWhenPro file", "Disable other agents and UI when profiler is active", true);
316 this.dockToLeft = this._createExperiment("dockToLeft", "Dock to left", true) ; 314 this.dockToLeft = this._createExperiment("dockToLeft", "Dock to left", true) ;
317 this.editorInDrawer = this._createExperiment("showEditorInDrawer", "Editor i n drawer", true); 315 this.editorInDrawer = this._createExperiment("showEditorInDrawer", "Editor i n drawer", true);
318 this.fileSystemInspection = this._createExperiment("fileSystemInspection", " FileSystem inspection"); 316 this.fileSystemInspection = this._createExperiment("fileSystemInspection", " FileSystem inspection");
319 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin gSupport", "JavaScript frameworks debugging"); 317 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin gSupport", "JavaScript frameworks debugging");
320 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli ne", true); 318 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli ne", true);
321 this.heapAllocationProfiler = this._createExperiment("allocationProfiler", " Heap allocation profiler"); 319 this.heapAllocationProfiler = this._createExperiment("allocationProfiler", " Heap allocation profiler");
322 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics ", "Heap snapshot statistics", true); 320 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics ", "Heap snapshot statistics", true);
323 this.layersPanel = this._createExperiment("layersPanel", "Layers panel", tru e); 321 this.layersPanel = this._createExperiment("layersPanel", "Layers panel", tru e);
324 this.responsiveDesign = this._createExperiment("responsiveDesign", "Responsi ve design", true); 322 this.networkConditions = this._createExperiment("networkConditions", "Networ k conditions", true);
323 this.responsiveDesign = this._createExperiment("responsiveDesign", "Responsi ve design");
325 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Time line flame chart"); 324 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Time line flame chart");
326 this.timelineOnTraceEvents = this._createExperiment("timelineOnTraceEvents", "Timeline on trace events", true); 325 this.timelineOnTraceEvents = this._createExperiment("timelineOnTraceEvents", "Timeline on trace events", true);
327 this.timelinePowerProfiler = this._createExperiment("timelinePowerProfiler", "Timeline power profiler"); 326 this.timelinePowerProfiler = this._createExperiment("timelinePowerProfiler", "Timeline power profiler");
328 this.timelineTracingMode = this._createExperiment("timelineTracingMode", "Ti meline tracing mode"); 327 this.timelineTracingMode = this._createExperiment("timelineTracingMode", "Ti meline tracing mode");
329 this.timelineJSCPUProfile = this._createExperiment("timelineJSCPUProfile", " Timeline with JS sampling"); 328 this.timelineJSCPUProfile = this._createExperiment("timelineJSCPUProfile", " Timeline with JS sampling");
330 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", " Timeline w/o live update", true); 329 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", " Timeline w/o live update", true);
331 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Wo rkers in main window", true); 330 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Wo rkers in main window", true);
332 331
333 this._cleanUpSetting(); 332 this._cleanUpSetting();
334 } 333 }
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 756
758 _fireChangedIfNeeded: function() 757 _fireChangedIfNeeded: function()
759 { 758 {
760 var newValue = this._calculateValue(); 759 var newValue = this._calculateValue();
761 if (newValue === this._value) 760 if (newValue === this._value)
762 return; 761 return;
763 this._value = newValue; 762 this._value = newValue;
764 this._eventSupport.dispatchEventToListeners(this._name, this._value); 763 this._eventSupport.dispatchEventToListeners(this._name, this._value);
765 } 764 }
766 } 765 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ResponsiveDesignView.js ('k') | Source/devtools/front_end/elements/OverridesView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698