Index: ui/aura/event.h |
diff --git a/ui/aura/event.h b/ui/aura/event.h |
index 2f36516c25fd4abdcbee90cbcad14539285be1d9..b9e4ecc0630ffd011a9fa4cd2e9df785203c6b71 100644 |
--- a/ui/aura/event.h |
+++ b/ui/aura/event.h |
@@ -39,6 +39,9 @@ class AURA_EXPORT Event { |
bool IsCapsLockDown() const { return (flags_ & ui::EF_CAPS_LOCK_DOWN) != 0; } |
bool IsAltDown() const { return (flags_ & ui::EF_ALT_DOWN) != 0; } |
+ // Returns true if the event has a valid |native_event_|. |
+ bool HasNativeEvent() const; |
+ |
protected: |
Event(ui::EventType type, int flags); |
Event(const base::NativeEvent& native_event, ui::EventType type, int flags); |