Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
|
sadrul
2014/02/13 04:30:44
2014 (do we not have a presubmit script for this?)
tfarina
2014/02/15 00:34:26
Done.
| |
| 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 UI_EVENTS_COCOA_COCOA_EVENT_UTILS_H_ | |
| 6 #define UI_EVENTS_COCOA_COCOA_EVENT_UTILS_H_ | |
| 7 | |
| 8 #import <Cocoa/Cocoa.h> | |
| 9 | |
| 10 #include "ui/events/events_export.h" | |
| 11 | |
| 12 namespace ui { | |
| 13 | |
| 14 // Retrieves a bitsum of ui::EventFlags represented by |event|, | |
| 15 EVENTS_EXPORT int EventFlagsFromNSEvent(NSEvent* event); | |
|
sadrul
2014/02/13 04:30:44
Can the users of this function be using the EventF
tfarina
2014/02/15 00:34:26
Done.
| |
| 16 | |
| 17 // Retrieves a bitsum of ui::EventFlags represented by |event|, | |
| 18 // but instead use the modifier flags given by |modifiers|, | |
| 19 // which is the same format as |-NSEvent modifierFlags|. This allows | |
| 20 // substitution of the modifiers without having to create a new event from | |
| 21 // scratch. | |
| 22 EVENTS_EXPORT int EventFlagsFromNSEventWithModifiers(NSEvent* event, | |
| 23 NSUInteger modifiers); | |
| 24 } // namespace ui | |
| 25 | |
| 26 #endif // UI_EVENTS_COCOA_COCOA_EVENT_UTILS_H_ | |
| OLD | NEW |