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

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

Issue 304693002: DevTools: get rid of deviceMetics settings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tests fixed. 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 this.responsiveDesignMode = this.createSetting("responsiveDesignMode", false );
93 } 94 }
94 95
95 WebInspector.Settings.prototype = { 96 WebInspector.Settings.prototype = {
96 /** 97 /**
97 * @param {string} key 98 * @param {string} key
98 * @param {*} defaultValue 99 * @param {*} defaultValue
99 * @return {!WebInspector.Setting} 100 * @return {!WebInspector.Setting}
100 */ 101 */
101 createSetting: function(key, defaultValue) 102 createSetting: function(key, defaultValue)
102 { 103 {
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 { 749 {
749 var newValue = this._calculateValue(); 750 var newValue = this._calculateValue();
750 if (newValue === this._value) 751 if (newValue === this._value)
751 return; 752 return;
752 this._value = newValue; 753 this._value = newValue;
753 this._eventSupport.dispatchEventToListeners(this._name, this._value); 754 this._eventSupport.dispatchEventToListeners(this._name, this._value);
754 } 755 }
755 } 756 }
756 757
757 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.PauseOnExce ptionStateSetting(); 758 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.PauseOnExce ptionStateSetting();
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