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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 this._eventSupport = new WebInspector.Object(); | 51 this._eventSupport = new WebInspector.Object(); |
52 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({})
; | 52 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({})
; |
53 | 53 |
54 this.colorFormat = this.createSetting("colorFormat", "original"); | 54 this.colorFormat = this.createSetting("colorFormat", "original"); |
55 this.consoleHistory = this.createSetting("consoleHistory", []); | 55 this.consoleHistory = this.createSetting("consoleHistory", []); |
56 this.domWordWrap = this.createSetting("domWordWrap", true); | 56 this.domWordWrap = this.createSetting("domWordWrap", true); |
57 this.eventListenersFilter = this.createSetting("eventListenersFilter", "all"
); | 57 this.eventListenersFilter = this.createSetting("eventListenersFilter", "all"
); |
58 this.lastViewedScriptFile = this.createSetting("lastViewedScriptFile", "appl
ication"); | 58 this.lastViewedScriptFile = this.createSetting("lastViewedScriptFile", "appl
ication"); |
59 this.monitoringXHREnabled = this.createSetting("monitoringXHREnabled", false
); | 59 this.monitoringXHREnabled = this.createSetting("monitoringXHREnabled", false
); |
60 this.preserveConsoleLog = this.createSetting("preserveConsoleLog", false); | 60 this.preserveConsoleLog = this.createSetting("preserveConsoleLog", false); |
| 61 this.consoleTimestampsEnabled = this.createSetting("consoleTimestampsEnabled
", false); |
61 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); | 62 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); |
62 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); | 63 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); |
63 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); | 64 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); |
64 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); | 65 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); |
65 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); | 66 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); |
66 this.watchExpressions = this.createSetting("watchExpressions", []); | 67 this.watchExpressions = this.createSetting("watchExpressions", []); |
67 this.breakpoints = this.createSetting("breakpoints", []); | 68 this.breakpoints = this.createSetting("breakpoints", []); |
68 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); | 69 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); |
69 this.domBreakpoints = this.createSetting("domBreakpoints", []); | 70 this.domBreakpoints = this.createSetting("domBreakpoints", []); |
70 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []); | 71 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []); |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 { | 571 { |
571 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 572 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
572 // periodical breakpoints duplication leading to inspector slowness. | 573 // periodical breakpoints duplication leading to inspector slowness. |
573 if (breakpointsSetting.get().length > maxBreakpointsCount) | 574 if (breakpointsSetting.get().length > maxBreakpointsCount) |
574 breakpointsSetting.set([]); | 575 breakpointsSetting.set([]); |
575 } | 576 } |
576 } | 577 } |
577 | 578 |
578 WebInspector.settings = new WebInspector.Settings(); | 579 WebInspector.settings = new WebInspector.Settings(); |
579 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 580 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
OLD | NEW |