Index: chrome/browser/event_disposition.h |
diff --git a/chrome/browser/event_disposition.h b/chrome/browser/event_disposition.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..53dcd3650cdca02a7fff58f1a27fb944c8ef921e |
--- /dev/null |
+++ b/chrome/browser/event_disposition.h |
@@ -0,0 +1,20 @@ |
+// Copyright (c) 2006-2008 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. |
+ |
+#ifndef CHROME_BROWSER_EVENT_DISPOSITION_H__ |
+#define CHROME_BROWSER_EVENT_DISPOSITION_H__ |
+#pragma once |
+ |
+#include "webkit/glue/window_open_disposition.h" |
+ |
+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); |
+ |
+} |
+ |
+#endif // CHROME_BROWSER_EVENT_DISPOSITION_H__ |