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

Unified Diff: Source/core/events/Event.h

Issue 1233233003: Add Event.isTrusted support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main2
Patch Set: Fix nits Created 5 years, 5 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 | « Source/core/dom/Node.cpp ('k') | Source/core/events/Event.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/Event.h
diff --git a/Source/core/events/Event.h b/Source/core/events/Event.h
index b0a81d12b2bff6cd5fd9adf376870579637cd93d..f0ee9c3637b3875a633d56950d83e070999912c5 100644
--- a/Source/core/events/Event.h
+++ b/Source/core/events/Event.h
@@ -192,6 +192,9 @@ public:
virtual PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator();
+ bool isTrusted() const { return m_isTrusted; }
+ void setTrusted(bool value) { m_isTrusted = value; }
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -214,6 +217,7 @@ private:
unsigned m_defaultPrevented:1;
unsigned m_defaultHandled:1;
unsigned m_cancelBubble:1;
+ unsigned m_isTrusted : 1;
unsigned short m_eventPhase;
RefPtrWillBeMember<EventTarget> m_currentTarget;
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698