| 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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 /** | 528 /** |
| 529 * @param {!UI.TabbedPaneTab} tab | 529 * @param {!UI.TabbedPaneTab} tab |
| 530 */ | 530 */ |
| 531 _hideTabElement(tab) { | 531 _hideTabElement(tab) { |
| 532 this._tabsElement.removeChild(tab.tabElement); | 532 this._tabsElement.removeChild(tab.tabElement); |
| 533 tab._shown = false; | 533 tab._shown = false; |
| 534 } | 534 } |
| 535 | 535 |
| 536 _createDropDownButton() { | 536 _createDropDownButton() { |
| 537 var dropDownContainer = createElementWithClass('div', 'tabbed-pane-header-ta
bs-drop-down-container'); | 537 var dropDownContainer = createElementWithClass('div', 'tabbed-pane-header-ta
bs-drop-down-container'); |
| 538 dropDownContainer.createChild('div', 'glyph'); | 538 var chevronIcon = UI.Icon.create('largeicon-chevron', 'chevron-icon'); |
| 539 dropDownContainer.appendChild(chevronIcon); |
| 539 this._dropDownMenu = new UI.DropDownMenu(dropDownContainer); | 540 this._dropDownMenu = new UI.DropDownMenu(dropDownContainer); |
| 540 this._dropDownMenu.addEventListener(UI.DropDownMenu.Events.ItemSelected, thi
s._dropDownMenuItemSelected, this); | 541 this._dropDownMenu.addEventListener(UI.DropDownMenu.Events.ItemSelected, thi
s._dropDownMenuItemSelected, this); |
| 541 | 542 |
| 542 return dropDownContainer; | 543 return dropDownContainer; |
| 543 } | 544 } |
| 544 | 545 |
| 545 /** | 546 /** |
| 546 * @param {!Common.Event} event | 547 * @param {!Common.Event} event |
| 547 */ | 548 */ |
| 548 _dropDownMenuItemSelected(event) { | 549 _dropDownMenuItemSelected(event) { |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 * @param {!Array.<string>} ids | 1216 * @param {!Array.<string>} ids |
| 1216 */ | 1217 */ |
| 1217 closeTabs(tabbedPane, ids) {}, | 1218 closeTabs(tabbedPane, ids) {}, |
| 1218 | 1219 |
| 1219 /** | 1220 /** |
| 1220 * @param {string} tabId | 1221 * @param {string} tabId |
| 1221 * @param {!UI.ContextMenu} contextMenu | 1222 * @param {!UI.ContextMenu} contextMenu |
| 1222 */ | 1223 */ |
| 1223 onContextMenu(tabId, contextMenu) {} | 1224 onContextMenu(tabId, contextMenu) {} |
| 1224 }; | 1225 }; |
| OLD | NEW |