OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_COMMON_COCOA_UTIL_H_ | |
6 #define CHROME_COMMON_COCOA_UTIL_H_ | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 #include "webkit/glue/window_open_disposition.h" | |
10 | |
11 namespace event_utils { | |
12 | |
13 // Translates modifier flags from an NSEvent into a WindowOpenDisposition. For | |
14 // example, holding down Cmd (Apple) will cause pages to be opened in a new | |
15 // foreground tab. Pass this the result of -[NSEvent modifierFlags]. | |
16 WindowOpenDisposition DispositionFromEventFlags(NSUInteger modifiers); | |
17 | |
18 } // namespace event_utils | |
19 | |
20 #endif // CHROME_COMMON_COCOA_UTIL_H_ | |
OLD | NEW |