OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2011 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 * @extends {WebInspector.VBox} | 733 * @extends {WebInspector.VBox} |
734 * @param {function()} resizeCallback | 734 * @param {function()} resizeCallback |
735 */ | 735 */ |
736 WebInspector.VBoxWithResizeCallback = function(resizeCallback) | 736 WebInspector.VBoxWithResizeCallback = function(resizeCallback) |
737 { | 737 { |
738 WebInspector.VBox.call(this); | 738 WebInspector.VBox.call(this); |
739 this._resizeCallback = resizeCallback; | 739 this._resizeCallback = resizeCallback; |
740 }; | 740 }; |
741 | 741 |
742 WebInspector.VBoxWithResizeCallback.prototype = { | 742 WebInspector.VBoxWithResizeCallback.prototype = { |
| 743 /** |
| 744 * @override |
| 745 */ |
743 onResize: function() | 746 onResize: function() |
744 { | 747 { |
745 this._resizeCallback(); | 748 this._resizeCallback(); |
746 }, | 749 }, |
747 | 750 |
748 __proto__: WebInspector.VBox.prototype | 751 __proto__: WebInspector.VBox.prototype |
749 }; | 752 }; |
750 | 753 |
751 /** | 754 /** |
752 * @param {!WebInspector.Widget} widget | 755 * @param {!WebInspector.Widget} widget |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 { | 809 { |
807 WebInspector.Widget.__assert(!child.__widgetCounter && !child.__widget, "Att
empt to remove element containing widget via regular DOM operation"); | 810 WebInspector.Widget.__assert(!child.__widgetCounter && !child.__widget, "Att
empt to remove element containing widget via regular DOM operation"); |
808 return WebInspector.Widget._originalRemoveChild.call(this, child); | 811 return WebInspector.Widget._originalRemoveChild.call(this, child); |
809 }; | 812 }; |
810 | 813 |
811 Element.prototype.removeChildren = function() | 814 Element.prototype.removeChildren = function() |
812 { | 815 { |
813 WebInspector.Widget.__assert(!this.__widgetCounter, "Attempt to remove eleme
nt containing widget via regular DOM operation"); | 816 WebInspector.Widget.__assert(!this.__widgetCounter, "Attempt to remove eleme
nt containing widget via regular DOM operation"); |
814 WebInspector.Widget._originalRemoveChildren.call(this); | 817 WebInspector.Widget._originalRemoveChildren.call(this); |
815 }; | 818 }; |
OLD | NEW |