summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/event_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/event_utils.h')
-rw-r--r--chrome/browser/cocoa/event_utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/event_utils.h b/chrome/browser/cocoa/event_utils.h
index 7d0f87b..7921187 100644
--- a/chrome/browser/cocoa/event_utils.h
+++ b/chrome/browser/cocoa/event_utils.h
@@ -16,6 +16,14 @@ namespace event_utils {
// associated link in a background tab.
WindowOpenDisposition WindowOpenDispositionFromNSEvent(NSEvent* event);
+// Retrieves the WindowOpenDisposition used to open a link from a user gesture
+// represented by |event|, but instead use the modifier flags given by |flags|,
+// which is the same format as |-NSEvent modifierFlags|. This allows
+// substitution of the modifiers without having to create a new event from
+// scratch.
+WindowOpenDisposition WindowOpenDispositionFromNSEventWithFlags(
+ NSEvent* event, NSUInteger flags);
+
} // namespace event_utils
#endif // CHROME_BROWSER_COCOA_EVENT_UTILS_H_