| 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.
|
|
|