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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 if (!measuring) | 1046 if (!measuring) |
1047 this._titleElement = titleElement; | 1047 this._titleElement = titleElement; |
1048 | 1048 |
1049 if (this._closeable) | 1049 if (this._closeable) |
1050 tabElement.createChild("div", "tabbed-pane-close-button", "dt-close-
button").gray = true; | 1050 tabElement.createChild("div", "tabbed-pane-close-button", "dt-close-
button").gray = true; |
1051 | 1051 |
1052 if (measuring) { | 1052 if (measuring) { |
1053 tabElement.classList.add("measuring"); | 1053 tabElement.classList.add("measuring"); |
1054 } else { | 1054 } else { |
1055 tabElement.addEventListener("click", this._tabClicked.bind(this), fa
lse); | 1055 tabElement.addEventListener("click", this._tabClicked.bind(this), fa
lse); |
| 1056 tabElement.addEventListener("auxclick", this._tabClicked.bind(this),
false); |
1056 tabElement.addEventListener("mousedown", this._tabMouseDown.bind(thi
s), false); | 1057 tabElement.addEventListener("mousedown", this._tabMouseDown.bind(thi
s), false); |
1057 tabElement.addEventListener("mouseup", this._tabMouseUp.bind(this),
false); | 1058 tabElement.addEventListener("mouseup", this._tabMouseUp.bind(this),
false); |
1058 | 1059 |
1059 tabElement.addEventListener("contextmenu", this._tabContextMenu.bind
(this), false); | 1060 tabElement.addEventListener("contextmenu", this._tabContextMenu.bind
(this), false); |
1060 if (this._tabbedPane._allowTabReorder) | 1061 if (this._tabbedPane._allowTabReorder) |
1061 WebInspector.installDragHandle(tabElement, this._startTabDraggin
g.bind(this), this._tabDragging.bind(this), this._endTabDragging.bind(this), "-w
ebkit-grabbing", "pointer", 200); | 1062 WebInspector.installDragHandle(tabElement, this._startTabDraggin
g.bind(this), this._tabDragging.bind(this), this._endTabDragging.bind(this), "-w
ebkit-grabbing", "pointer", 200); |
1062 } | 1063 } |
1063 | 1064 |
1064 return tabElement; | 1065 return tabElement; |
1065 }, | 1066 }, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 * @param {!Array.<string>} ids | 1239 * @param {!Array.<string>} ids |
1239 */ | 1240 */ |
1240 closeTabs: function(tabbedPane, ids) { }, | 1241 closeTabs: function(tabbedPane, ids) { }, |
1241 | 1242 |
1242 /** | 1243 /** |
1243 * @param {string} tabId | 1244 * @param {string} tabId |
1244 * @param {!WebInspector.ContextMenu} contextMenu | 1245 * @param {!WebInspector.ContextMenu} contextMenu |
1245 */ | 1246 */ |
1246 onContextMenu: function(tabId, contextMenu) { } | 1247 onContextMenu: function(tabId, contextMenu) { } |
1247 } | 1248 } |
OLD | NEW |