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

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

Issue 2594883002: DevTools: [Persistence] introduce badged icons instead of checkmarks (Closed)
Patch Set: missing jsdoc Created 3 years, 12 months 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 lastOpenedTabIds(tabsCount) { 342 lastOpenedTabIds(tabsCount) {
343 function tabToTabId(tab) { 343 function tabToTabId(tab) {
344 return tab.id; 344 return tab.id;
345 } 345 }
346 346
347 return this._tabsHistory.slice(0, tabsCount).map(tabToTabId); 347 return this._tabsHistory.slice(0, tabsCount).map(tabToTabId);
348 } 348 }
349 349
350 /** 350 /**
351 * @param {string} id 351 * @param {string} id
352 * @param {?UI.Icon} icon 352 * @param {?Element} icon
353 */ 353 */
354 setTabIcon(id, icon) { 354 setTabIcon(id, icon) {
355 var tab = this._tabsById.get(id); 355 var tab = this._tabsById.get(id);
356 tab._setIcon(icon); 356 tab._setIcon(icon);
357 this._updateTabElements(); 357 this._updateTabElements();
358 } 358 }
359 359
360 /** 360 /**
361 * @param {string} id 361 * @param {string} id
362 * @param {boolean} enabled 362 * @param {boolean} enabled
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } 896 }
897 897
898 /** 898 /**
899 * @return {boolean} 899 * @return {boolean}
900 */ 900 */
901 isCloseable() { 901 isCloseable() {
902 return this._closeable; 902 return this._closeable;
903 } 903 }
904 904
905 /** 905 /**
906 * @param {?UI.Icon} icon 906 * @param {?Element} icon
907 */ 907 */
908 _setIcon(icon) { 908 _setIcon(icon) {
909 this._icon = icon; 909 this._icon = icon;
910 if (this._tabElement) 910 if (this._tabElement)
911 this._createIconElement(this._tabElement, this._titleElement, false); 911 this._createIconElement(this._tabElement, this._titleElement, false);
912 delete this._measuredWidth; 912 delete this._measuredWidth;
913 } 913 }
914 914
915 /** 915 /**
916 * @param {string} className 916 * @param {string} className
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 * @param {!Array.<string>} ids 1210 * @param {!Array.<string>} ids
1211 */ 1211 */
1212 closeTabs(tabbedPane, ids) {}, 1212 closeTabs(tabbedPane, ids) {},
1213 1213
1214 /** 1214 /**
1215 * @param {string} tabId 1215 * @param {string} tabId
1216 * @param {!UI.ContextMenu} contextMenu 1216 * @param {!UI.ContextMenu} contextMenu
1217 */ 1217 */
1218 onContextMenu(tabId, contextMenu) {} 1218 onContextMenu(tabId, contextMenu) {}
1219 }; 1219 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698