Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/Widget.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698