| OLD | NEW |
| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 this._eventSupport = new WebInspector.Object(); | 49 this._eventSupport = new WebInspector.Object(); |
| 50 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({})
; | 50 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({})
; |
| 51 | 51 |
| 52 this.colorFormat = this.createSetting("colorFormat", "original"); | 52 this.colorFormat = this.createSetting("colorFormat", "original"); |
| 53 this.consoleHistory = this.createSetting("consoleHistory", []); | 53 this.consoleHistory = this.createSetting("consoleHistory", []); |
| 54 this.domWordWrap = this.createSetting("domWordWrap", true); | 54 this.domWordWrap = this.createSetting("domWordWrap", true); |
| 55 this.eventListenersFilter = this.createSetting("eventListenersFilter", "all"
); | 55 this.eventListenersFilter = this.createSetting("eventListenersFilter", "all"
); |
| 56 this.lastViewedScriptFile = this.createSetting("lastViewedScriptFile", "appl
ication"); | 56 this.lastViewedScriptFile = this.createSetting("lastViewedScriptFile", "appl
ication"); |
| 57 this.monitoringXHREnabled = this.createSetting("monitoringXHREnabled", false
); | 57 this.monitoringXHREnabled = this.createSetting("monitoringXHREnabled", false
); |
| 58 this.preserveConsoleLog = this.createSetting("preserveConsoleLog", false); | 58 this.preserveConsoleLog = this.createSetting("preserveConsoleLog", false); |
| 59 this.consoleTimestampsEnabled = this.createSetting("consoleTimestampsEnabled
", false); |
| 59 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); | 60 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); |
| 60 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); | 61 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); |
| 61 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); | 62 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); |
| 62 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); | 63 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); |
| 63 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); | 64 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); |
| 64 this.watchExpressions = this.createSetting("watchExpressions", []); | 65 this.watchExpressions = this.createSetting("watchExpressions", []); |
| 65 this.breakpoints = this.createSetting("breakpoints", []); | 66 this.breakpoints = this.createSetting("breakpoints", []); |
| 66 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); | 67 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); |
| 67 this.domBreakpoints = this.createSetting("domBreakpoints", []); | 68 this.domBreakpoints = this.createSetting("domBreakpoints", []); |
| 68 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []); | 69 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []); |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 { | 600 { |
| 600 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 601 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 601 // periodical breakpoints duplication leading to inspector slowness. | 602 // periodical breakpoints duplication leading to inspector slowness. |
| 602 if (breakpointsSetting.get().length > maxBreakpointsCount) | 603 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 603 breakpointsSetting.set([]); | 604 breakpointsSetting.set([]); |
| 604 } | 605 } |
| 605 } | 606 } |
| 606 | 607 |
| 607 WebInspector.settings = new WebInspector.Settings(); | 608 WebInspector.settings = new WebInspector.Settings(); |
| 608 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 609 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); |
| OLD | NEW |