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 24 matching lines...) Expand all Loading... |
35 { | 35 { |
36 this._eventSupport = new WebInspector.Object(); | 36 this._eventSupport = new WebInspector.Object(); |
37 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({})
; | 37 this._registry = /** @type {!Object.<string, !WebInspector.Setting>} */ ({})
; |
38 | 38 |
39 this.colorFormat = this.createSetting("colorFormat", "original"); | 39 this.colorFormat = this.createSetting("colorFormat", "original"); |
40 this.consoleHistory = this.createSetting("consoleHistory", []); | 40 this.consoleHistory = this.createSetting("consoleHistory", []); |
41 this.domWordWrap = this.createSetting("domWordWrap", true); | 41 this.domWordWrap = this.createSetting("domWordWrap", true); |
42 this.eventListenersFilter = this.createSetting("eventListenersFilter", "all"
); | 42 this.eventListenersFilter = this.createSetting("eventListenersFilter", "all"
); |
43 this.lastViewedScriptFile = this.createSetting("lastViewedScriptFile", "appl
ication"); | 43 this.lastViewedScriptFile = this.createSetting("lastViewedScriptFile", "appl
ication"); |
44 this.monitoringXHREnabled = this.createSetting("monitoringXHREnabled", false
); | 44 this.monitoringXHREnabled = this.createSetting("monitoringXHREnabled", false
); |
| 45 this.hideNetworkMessages = this.createSetting("hideNetworkMessages", false); |
45 this.preserveConsoleLog = this.createSetting("preserveConsoleLog", false); | 46 this.preserveConsoleLog = this.createSetting("preserveConsoleLog", false); |
46 this.consoleTimestampsEnabled = this.createSetting("consoleTimestampsEnabled
", false); | 47 this.consoleTimestampsEnabled = this.createSetting("consoleTimestampsEnabled
", false); |
47 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); | 48 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); |
48 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); | 49 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); |
49 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); | 50 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); |
50 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); | 51 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); |
51 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); | 52 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); |
52 this.watchExpressions = this.createSetting("watchExpressions", []); | 53 this.watchExpressions = this.createSetting("watchExpressions", []); |
53 this.breakpoints = this.createSetting("breakpoints", []); | 54 this.breakpoints = this.createSetting("breakpoints", []); |
54 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); | 55 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 | 632 |
632 _fireChangedIfNeeded: function() | 633 _fireChangedIfNeeded: function() |
633 { | 634 { |
634 var newValue = this._calculateValue(); | 635 var newValue = this._calculateValue(); |
635 if (newValue === this._value) | 636 if (newValue === this._value) |
636 return; | 637 return; |
637 this._value = newValue; | 638 this._value = newValue; |
638 this._eventSupport.dispatchEventToListeners(this._name, this._value); | 639 this._eventSupport.dispatchEventToListeners(this._name, this._value); |
639 } | 640 } |
640 } | 641 } |
OLD | NEW |