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

Unified Diff: chrome/browser/resources/local_ntp/window_disposition_util.js

Issue 1908363002: Nuke chrome.embeddedeseach.newTabPage.navigateContentWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/local_ntp/most_visited_util.js ('k') | chrome/browser/search/instant_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/window_disposition_util.js
diff --git a/chrome/browser/resources/local_ntp/window_disposition_util.js b/chrome/browser/resources/local_ntp/window_disposition_util.js
deleted file mode 100644
index 9282759560ec7501be5ad322bd27af1bc28940ab..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/local_ntp/window_disposition_util.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 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.
-
-
-/**
- * @fileoverview Utilities for handling window disposition.
- */
-
-
-/**
- * The JavaScript button event value for a middle click.
- * @type {number}
- * @const
- */
-var MIDDLE_MOUSE_BUTTON = 1;
-
-
-/**
- * Gets the desired navigation behavior from a event. This function works both
- * with mouse and keyboard events.
- * @param {Event} e The event object.
- * @return {WindowOpenDisposition} The desired navigation behavior.
- */
-function getDispositionFromEvent(e) {
- var middleButton = e.button == MIDDLE_MOUSE_BUTTON;
- return chrome.embeddedSearch.newTabPage.getDispositionFromClick(middleButton,
- e.altKey,
- e.ctrlKey,
- e.metaKey,
- e.shiftKey);
-}
« no previous file with comments | « chrome/browser/resources/local_ntp/most_visited_util.js ('k') | chrome/browser/search/instant_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698