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

Unified Diff: ui/events/event_utils.h

Issue 284903002: Only dispatch menu events if they have a valid target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | ui/events/event_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 08bbfbc2e556d9a0f9c840ecccf0956af16de965..33a99a58eb2cec038e7819b90e927ac51c1d576e 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -32,6 +32,10 @@ class Event;
// Updates the list of devices for cached properties.
EVENTS_EXPORT void UpdateDeviceList();
+// Returns a ui::Event wrapping a native event. Ownership of the returned value
+// is transferred to the caller.
+EVENTS_EXPORT Event* EventFromNative(const base::NativeEvent& native_event);
sadrul 2014/05/14 03:23:10 Return a scoped_ptr<>
flackr 2014/05/15 21:12:57 Done.
+
// Get the EventType from a native event.
EVENTS_EXPORT EventType EventTypeFromNative(
const base::NativeEvent& native_event);
« no previous file with comments | « no previous file | ui/events/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698