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

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

Issue 2384783003: DevTools: split Sources tree into Network and Filesystem trees. (Closed)
Patch Set: Created 4 years, 2 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 { 405 {
406 for (var i = 0; i < this._tabs.length; ++i) 406 for (var i = 0; i < this._tabs.length; ++i)
407 delete this._tabs[i]._measuredWidth; 407 delete this._tabs[i]._measuredWidth;
408 if (this.isShowing()) 408 if (this.isShowing())
409 this._updateTabElements(); 409 this._updateTabElements();
410 }, 410 },
411 411
412 /** 412 /**
413 * @param {string} id 413 * @param {string} id
414 * @param {string} tabTitle 414 * @param {string} tabTitle
415 * @param {string=} tabTooltip
415 */ 416 */
416 changeTabTitle: function(id, tabTitle) 417 changeTabTitle: function(id, tabTitle, tabTooltip)
417 { 418 {
418 var tab = this._tabsById[id]; 419 var tab = this._tabsById[id];
lushnikov 2016/10/01 03:05:34 TabbedPaneTab has the tooltip setter: var tab = t
419 if (tab.title === tabTitle) 420 if (tab.title === tabTitle && (tabTooltip === undefined || tab.tooltip = == tabTooltip))
420 return; 421 return;
421 tab.title = tabTitle; 422 tab.title = tabTitle;
423 if (tabTooltip !== undefined)
424 tab.tooltip = tabTooltip;
422 this._updateTabElements(); 425 this._updateTabElements();
423 }, 426 },
424 427
425 /** 428 /**
426 * @param {string} id 429 * @param {string} id
427 * @param {!WebInspector.Widget} view 430 * @param {!WebInspector.Widget} view
428 */ 431 */
429 changeTabView: function(id, view) 432 changeTabView: function(id, view)
430 { 433 {
431 var tab = this._tabsById[id]; 434 var tab = this._tabsById[id];
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 * @param {!Array.<string>} ids 1263 * @param {!Array.<string>} ids
1261 */ 1264 */
1262 closeTabs: function(tabbedPane, ids) { }, 1265 closeTabs: function(tabbedPane, ids) { },
1263 1266
1264 /** 1267 /**
1265 * @param {string} tabId 1268 * @param {string} tabId
1266 * @param {!WebInspector.ContextMenu} contextMenu 1269 * @param {!WebInspector.ContextMenu} contextMenu
1267 */ 1270 */
1268 onContextMenu: function(tabId, contextMenu) { } 1271 onContextMenu: function(tabId, contextMenu) { }
1269 } 1272 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698