diff options
Diffstat (limited to 'ui/base/cocoa/events_mac.mm')
-rw-r--r-- | ui/base/cocoa/events_mac.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/base/cocoa/events_mac.mm b/ui/base/cocoa/events_mac.mm index f40d755..a3ae73b 100644 --- a/ui/base/cocoa/events_mac.mm +++ b/ui/base/cocoa/events_mac.mm @@ -179,6 +179,10 @@ bool GetScrollOffsets(const base::NativeEvent& native_event, return false; } +bool IsNoopEvent(base::NativeEvent event) { + return ([event type] == NSApplicationDefined && [event subtype] == 0); +} + base::NativeEvent CreateNoopEvent() { return [NSEvent otherEventWithType:NSApplicationDefined location:NSZeroPoint |