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

Unified Diff: chrome/browser/event_disposition.h

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make this patch applicable to the latest trunk Created 9 years, 6 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/automation/automation_provider_win.cc ('k') | chrome/browser/event_disposition.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/event_disposition.h
diff --git a/chrome/browser/ui/views/event_utils.h b/chrome/browser/event_disposition.h
similarity index 58%
copy from chrome/browser/ui/views/event_utils.h
copy to chrome/browser/event_disposition.h
index 9d37c531025bbe033980862b1004c92b5b3a7ccc..53dcd3650cdca02a7fff58f1a27fb944c8ef921e 100644
--- a/chrome/browser/ui/views/event_utils.h
+++ b/chrome/browser/event_disposition.h
@@ -2,27 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__
-#define CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__
+#ifndef CHROME_BROWSER_EVENT_DISPOSITION_H__
+#define CHROME_BROWSER_EVENT_DISPOSITION_H__
#pragma once
#include "webkit/glue/window_open_disposition.h"
-namespace views {
-class MouseEvent;
-}
-
-namespace event_utils {
+namespace browser {
// Translates event flags into what kind of disposition they represents.
// For example, a middle click would mean to open a background tab.
// event_flags are the flags as understood by views::MouseEvent.
WindowOpenDisposition DispositionFromEventFlags(int event_flags);
-// Returns true if the specified mouse event may have a
-// WindowOptionDisposition.
-bool IsPossibleDispositionEvent(const views::MouseEvent& event);
-
}
-#endif // CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__
+#endif // CHROME_BROWSER_EVENT_DISPOSITION_H__
« no previous file with comments | « chrome/browser/automation/automation_provider_win.cc ('k') | chrome/browser/event_disposition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698