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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 */ | 670 */ |
671 _clearBreakpointsWhenTooMany: function(breakpointsSetting, maxBreakpointsCou
nt) | 671 _clearBreakpointsWhenTooMany: function(breakpointsSetting, maxBreakpointsCou
nt) |
672 { | 672 { |
673 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 673 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
674 // periodical breakpoints duplication leading to inspector slowness. | 674 // periodical breakpoints duplication leading to inspector slowness. |
675 if (breakpointsSetting.get().length > maxBreakpointsCount) | 675 if (breakpointsSetting.get().length > maxBreakpointsCount) |
676 breakpointsSetting.set([]); | 676 breakpointsSetting.set([]); |
677 } | 677 } |
678 } | 678 } |
679 | 679 |
680 WebInspector.settings = new WebInspector.Settings(); | 680 /** |
681 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 681 * @type {!WebInspector.Settings} |
| 682 */ |
| 683 WebInspector.settings; |
| 684 |
| 685 /** |
| 686 * @type {!WebInspector.ExperimentsSettings} |
| 687 */ |
| 688 WebInspector.experimentsSettings; |
682 | 689 |
683 // These methods are added for backwards compatibility with Devtools CodeSchool
extension. | 690 // These methods are added for backwards compatibility with Devtools CodeSchool
extension. |
684 // DO NOT REMOVE | 691 // DO NOT REMOVE |
685 | 692 |
686 /** | 693 /** |
687 * @constructor | 694 * @constructor |
688 */ | 695 */ |
689 WebInspector.PauseOnExceptionStateSetting = function() | 696 WebInspector.PauseOnExceptionStateSetting = function() |
690 { | 697 { |
691 WebInspector.settings.pauseOnExceptionEnabled.addChangeListener(this._enable
dChanged, this); | 698 WebInspector.settings.pauseOnExceptionEnabled.addChangeListener(this._enable
dChanged, this); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 | 754 |
748 _fireChangedIfNeeded: function() | 755 _fireChangedIfNeeded: function() |
749 { | 756 { |
750 var newValue = this._calculateValue(); | 757 var newValue = this._calculateValue(); |
751 if (newValue === this._value) | 758 if (newValue === this._value) |
752 return; | 759 return; |
753 this._value = newValue; | 760 this._value = newValue; |
754 this._eventSupport.dispatchEventToListeners(this._name, this._value); | 761 this._eventSupport.dispatchEventToListeners(this._name, this._value); |
755 } | 762 } |
756 } | 763 } |
757 | |
758 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.PauseOnExce
ptionStateSetting(); | |
OLD | NEW |