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

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: 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 | « no previous file | chrome/browser/ui/cocoa/event_utils.mm » ('j') | chrome/browser/ui/cocoa/event_utils.mm » ('J')
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..8c1e85aa4305d30650412d5b9fc73fc098aaf86c 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 |flags|,
Avi (use Gerrit) 2011/08/30 20:11:17 s/|flags|/|modifiers|/ ?
shinyak (Google) 2011/08/31 06:09:23 Done.
+// 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 | « no previous file | chrome/browser/ui/cocoa/event_utils.mm » ('j') | chrome/browser/ui/cocoa/event_utils.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698