OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 } |
OLD | NEW |