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

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

Issue 45363004: DevTools: explicitly control support for viewport meta tag so that desktop emulation was possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments addressed. Created 7 years, 1 month 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
« no previous file with comments | « Source/devtools/front_end/OverridesView.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 this.domBreakpoints = this.createSetting("domBreakpoints", []); 72 this.domBreakpoints = this.createSetting("domBreakpoints", []);
73 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []); 73 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []);
74 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); 74 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true);
75 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true) ; 75 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true) ;
76 this.cacheDisabled = this.createSetting("cacheDisabled", false); 76 this.cacheDisabled = this.createSetting("cacheDisabled", false);
77 this.overrideUserAgent = this.createSetting("overrideUserAgent", false); 77 this.overrideUserAgent = this.createSetting("overrideUserAgent", false);
78 this.userAgent = this.createSetting("userAgent", ""); 78 this.userAgent = this.createSetting("userAgent", "");
79 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal se); 79 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal se);
80 this.deviceMetrics = this.createSetting("deviceMetrics", ""); 80 this.deviceMetrics = this.createSetting("deviceMetrics", "");
81 this.deviceFitWindow = this.createSetting("deviceFitWindow", true); 81 this.deviceFitWindow = this.createSetting("deviceFitWindow", true);
82 this.emulateViewport = this.createSetting("emulateViewport", false);
82 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); 83 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false);
83 this.showShadowDOM = this.createSetting("showShadowDOM", false); 84 this.showShadowDOM = this.createSetting("showShadowDOM", false);
84 this.zoomLevel = this.createSetting("zoomLevel", 0); 85 this.zoomLevel = this.createSetting("zoomLevel", 0);
85 this.savedURLs = this.createSetting("savedURLs", {}); 86 this.savedURLs = this.createSetting("savedURLs", {});
86 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); 87 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false);
87 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); 88 this.overrideGeolocation = this.createSetting("overrideGeolocation", false);
88 this.geolocationOverride = this.createSetting("geolocationOverride", ""); 89 this.geolocationOverride = this.createSetting("geolocationOverride", "");
89 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati on", false); 90 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati on", false);
90 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri de", ""); 91 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri de", "");
91 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe apSnapshotProperties", false); 92 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe apSnapshotProperties", false);
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 { 471 {
471 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused 472 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused
472 // periodical breakpoints duplication leading to inspector slowness. 473 // periodical breakpoints duplication leading to inspector slowness.
473 if (breakpointsSetting.get().length > maxBreakpointsCount) 474 if (breakpointsSetting.get().length > maxBreakpointsCount)
474 breakpointsSetting.set([]); 475 breakpointsSetting.set([]);
475 } 476 }
476 } 477 }
477 478
478 WebInspector.settings = new WebInspector.Settings(); 479 WebInspector.settings = new WebInspector.Settings();
479 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); 480 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/OverridesView.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698