Index: third_party/WebKit/Source/core/dom/Document.h |
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h |
index 31e6fa093898b30380fa398822e1db26da368d18..a2deee2703f00c1759190730e69e4032f992a52d 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.h |
+++ b/third_party/WebKit/Source/core/dom/Document.h |
@@ -1283,6 +1283,9 @@ class CORE_EXPORT Document : public ContainerNode, |
PropertyRegistry* propertyRegistry(); |
+ void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } |
+ bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } |
Rick Byers
2016/10/06 16:26:46
nit: add a comment documenting the semantics here,
|
+ |
protected: |
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
@@ -1528,6 +1531,7 @@ class CORE_EXPORT Document : public ContainerNode, |
bool m_designMode; |
bool m_isRunningExecCommand; |
+ bool m_hasReceivedUserGesture; |
HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument; |
// Oilpan keeps track of all registered NodeLists. |