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

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

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (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) 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 725
726 /** 726 /**
727 * @interface 727 * @interface
728 */ 728 */
729 UI.ToolbarItem.Provider = function() {}; 729 UI.ToolbarItem.Provider = function() {};
730 730
731 UI.ToolbarItem.Provider.prototype = { 731 UI.ToolbarItem.Provider.prototype = {
732 /** 732 /**
733 * @return {?UI.ToolbarItem} 733 * @return {?UI.ToolbarItem}
734 */ 734 */
735 item: function() {} 735 item() {}
736 }; 736 };
737 737
738 /** 738 /**
739 * @interface 739 * @interface
740 */ 740 */
741 UI.ToolbarItem.ItemsProvider = function() {}; 741 UI.ToolbarItem.ItemsProvider = function() {};
742 742
743 UI.ToolbarItem.ItemsProvider.prototype = { 743 UI.ToolbarItem.ItemsProvider.prototype = {
744 /** 744 /**
745 * @return {!Array<!UI.ToolbarItem>} 745 * @return {!Array<!UI.ToolbarItem>}
746 */ 746 */
747 toolbarItems: function() {} 747 toolbarItems() {}
748 }; 748 };
749 749
750 /** 750 /**
751 * @unrestricted 751 * @unrestricted
752 */ 752 */
753 UI.ToolbarComboBox = class extends UI.ToolbarItem { 753 UI.ToolbarComboBox = class extends UI.ToolbarItem {
754 /** 754 /**
755 * @param {?function(!Event)} changeHandler 755 * @param {?function(!Event)} changeHandler
756 * @param {string=} className 756 * @param {string=} className
757 */ 757 */
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 return this.inputElement.checked; 896 return this.inputElement.checked;
897 } 897 }
898 898
899 /** 899 /**
900 * @param {boolean} value 900 * @param {boolean} value
901 */ 901 */
902 setChecked(value) { 902 setChecked(value) {
903 this.inputElement.checked = value; 903 this.inputElement.checked = value;
904 } 904 }
905 }; 905 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js ('k') | third_party/WebKit/Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698