| 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 40ec07d36da6841e83fe3673db9bcf585c886645..b0ecc5f987a3bcc0139f74630d7e79400c585f04 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.h
|
| +++ b/third_party/WebKit/Source/core/dom/Document.h
|
| @@ -1314,6 +1314,14 @@ class CORE_EXPORT Document : public ContainerNode,
|
|
|
| PropertyRegistry* propertyRegistry();
|
|
|
| + // Indicates whether the user has interacted with this particular Document.
|
| + void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; }
|
| + // Consume user interaction state. Used for an experiment that restricts
|
| + // adding history entries to Documents that have had a user gesture since
|
| + // last history state change.
|
| + void clearHasReceivedUserGesture() { m_hasReceivedUserGesture = false; }
|
| + bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
|
| +
|
| protected:
|
| Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
|
|
|
| @@ -1558,6 +1566,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.
|
|
|