Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: ui/events/cocoa/cocoa_event_utils.h

Issue 2439953005: Support NSFlagsChanged in ui::EventFromNative. (Closed)
Patch Set: Unify NSFlagsChanged handling between content and ui/events. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/cocoa/cocoa_event_utils.h
diff --git a/ui/events/cocoa/cocoa_event_utils.h b/ui/events/cocoa/cocoa_event_utils.h
index 71ddab95e788483290d3b7128bacad60d190cf2a..b1ba7801f171c43f92e08ad328fc51103b43d13d 100644
--- a/ui/events/cocoa/cocoa_event_utils.h
+++ b/ui/events/cocoa/cocoa_event_utils.h
@@ -24,6 +24,11 @@ EVENTS_EXPORT int EventFlagsFromModifiers(NSUInteger modifiers);
// scratch.
EVENTS_EXPORT int EventFlagsFromNSEventWithModifiers(NSEvent* event,
NSUInteger modifiers);
+
+// Returns true for |NSKeyUp| and for |NSFlagsChanged| when modifier key was
+// released.
+EVENTS_EXPORT bool IsKeyUpEvent(NSEvent* event);
+
} // namespace ui
#endif // UI_EVENTS_COCOA_COCOA_EVENT_UTILS_H_
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_builders_mac.mm ('k') | ui/events/cocoa/cocoa_event_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698