Index: chrome/browser/resources/ntp4/synthetic_middleclick.js |
diff --git a/chrome/browser/resources/ntp4/synthetic_middleclick.js b/chrome/browser/resources/ntp4/synthetic_middleclick.js |
deleted file mode 100644 |
index 8c90c98a7f5abab97c059ede25c5e2a1345170b4..0000000000000000000000000000000000000000 |
--- a/chrome/browser/resources/ntp4/synthetic_middleclick.js |
+++ /dev/null |
@@ -1,24 +0,0 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-(function() { |
- |
-var middleButtonMouseDownTarget = null; |
- |
-document.addEventListener('mousedown', function(e) { |
- if (e.button == 1) |
- middleButtonMouseDownTarget = e.path[0]; |
-}, true); |
- |
-document.addEventListener('mouseup', function(e) { |
- if (e.button != 1) |
- return; |
- |
- if (e.path.length > 0 && e.path[0] == middleButtonMouseDownTarget) |
- middleButtonMouseDownTarget.dispatchEvent(new MouseEvent('click', e)); |
- |
- middleButtonMouseDownTarget = null; |
-}, true); |
- |
-})(); |