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

Unified Diff: chrome/browser/ui/cocoa/event_utils.h

Issue 7792048: WindowOpenDisposition should not be exposed in base and ui modules. (mac) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed a bug... Created 9 years, 4 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/event_disposition.cc ('k') | chrome/browser/ui/cocoa/event_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/event_utils.h
diff --git a/chrome/browser/ui/cocoa/event_utils.h b/chrome/browser/ui/cocoa/event_utils.h
index a8f24f8f23b8955949bdbfe4388a2fedec7aad73..b2ca4c734b73c9ba6a096a17544358cbc9c806d8 100644
--- a/chrome/browser/ui/cocoa/event_utils.h
+++ b/chrome/browser/ui/cocoa/event_utils.h
@@ -12,6 +12,16 @@
namespace event_utils {
+// Retrieves a bitsum of ui::EventFlags represented by |event|,
+int EventFlagsFromNSEvent(NSEvent* event);
+
+// Retrieves a bitsum of ui::EventFlags represented by |event|,
+// but instead use the modifier flags given by |modifiers|,
+// which is the same format as |-NSEvent modifierFlags|. This allows
+// substitution of the modifiers without having to create a new event from
+// scratch.
+int EventFlagsFromNSEventWithModifiers(NSEvent* event, NSUInteger modifiers);
+
// Retrieves the WindowOpenDisposition used to open a link from a user gesture
// represented by |event|. For example, a Cmd+Click would mean open the
// associated link in a background tab.
« no previous file with comments | « chrome/browser/event_disposition.cc ('k') | chrome/browser/ui/cocoa/event_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698