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

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

Issue 2163893003: Start sending auxclick instead of click for non-primary buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another rebase Created 4 years, 4 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698