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

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

Issue 197283031: DevTools: fix author shadow dom inspection mode, speacial-case ua. Fix crash from the bug. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 9 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); 69 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true);
70 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true) ; 70 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true) ;
71 this.cacheDisabled = this.createSetting("cacheDisabled", false); 71 this.cacheDisabled = this.createSetting("cacheDisabled", false);
72 this.overrideUserAgent = this.createSetting("overrideUserAgent", false); 72 this.overrideUserAgent = this.createSetting("overrideUserAgent", false);
73 this.userAgent = this.createSetting("userAgent", ""); 73 this.userAgent = this.createSetting("userAgent", "");
74 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal se); 74 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal se);
75 this.deviceMetrics = this.createSetting("deviceMetrics", ""); 75 this.deviceMetrics = this.createSetting("deviceMetrics", "");
76 this.deviceFitWindow = this.createSetting("deviceFitWindow", true); 76 this.deviceFitWindow = this.createSetting("deviceFitWindow", true);
77 this.emulateViewport = this.createSetting("emulateViewport", false); 77 this.emulateViewport = this.createSetting("emulateViewport", false);
78 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); 78 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false);
79 79 this.showUAShadowDOM = this.createSetting("showUAShadowDOM", false);
80 // This setting affects the display of user-agent shadow DOM only,
81 // as author shadow DOM is displayed at all times.
82 this.showShadowDOM = this.createSetting("showShadowDOM", false);
83 this.savedURLs = this.createSetting("savedURLs", {}); 80 this.savedURLs = this.createSetting("savedURLs", {});
84 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); 81 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false);
85 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); 82 this.overrideGeolocation = this.createSetting("overrideGeolocation", false);
86 this.geolocationOverride = this.createSetting("geolocationOverride", ""); 83 this.geolocationOverride = this.createSetting("geolocationOverride", "");
87 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati on", false); 84 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati on", false);
88 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri de", ""); 85 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri de", "");
89 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe apSnapshotProperties", false); 86 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe apSnapshotProperties", false);
90 this.highResolutionCpuProfiling = this.createSetting("highResolutionCpuProfi ling", false); 87 this.highResolutionCpuProfiling = this.createSetting("highResolutionCpuProfi ling", false);
91 this.searchInContentScripts = this.createSetting("searchInContentScripts", f alse); 88 this.searchInContentScripts = this.createSetting("searchInContentScripts", f alse);
92 this.textEditorIndent = this.createSetting("textEditorIndent", " "); 89 this.textEditorIndent = this.createSetting("textEditorIndent", " ");
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 { 602 {
606 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused 603 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused
607 // periodical breakpoints duplication leading to inspector slowness. 604 // periodical breakpoints duplication leading to inspector slowness.
608 if (breakpointsSetting.get().length > maxBreakpointsCount) 605 if (breakpointsSetting.get().length > maxBreakpointsCount)
609 breakpointsSetting.set([]); 606 breakpointsSetting.set([]);
610 } 607 }
611 } 608 }
612 609
613 WebInspector.settings = new WebInspector.Settings(); 610 WebInspector.settings = new WebInspector.Settings();
614 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe ctor.queryParam("experiments") !== null); 611 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe ctor.queryParam("experiments") !== null);
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ScreencastView.js ('k') | Source/devtools/front_end/SettingsScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698