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_BROWSER_COCOA_EVENT_UTILS_H_ |
| 6 #define CHROME_BROWSER_COCOA_EVENT_UTILS_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "webkit/glue/window_open_disposition.h" |
| 11 |
| 12 namespace event_utils { |
| 13 |
| 14 // Retrieves the WindowOpenDisposition used to open a link from a user gesture |
| 15 // represented by |event|. For example, a Cmd+Click would mean open the |
| 16 // associated link in a background tab. |
| 17 WindowOpenDisposition WindowOpenDispositionFromNSEvent(NSEvent* event); |
| 18 |
| 19 } // namespace event_utils |
| 20 |
| 21 #endif // CHROME_BROWSER_COCOA_EVENT_UTILS_H_ |
OLD | NEW |