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 d31b73c2933e9eba7c572af82fd298f97f0d90e6..da89477ab31157cd7047cd280cd19c079ed0b950 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.h |
+++ b/third_party/WebKit/Source/core/dom/Document.h |
@@ -64,6 +64,7 @@ |
#include "platform/weborigin/ReferrerPolicy.h" |
#include "public/platform/WebFocusType.h" |
#include "public/platform/WebInsecureRequestPolicy.h" |
+#include "public/platform/site_engagement.mojom-blink.h" |
#include "wtf/Compiler.h" |
#include "wtf/HashSet.h" |
#include "wtf/PassRefPtr.h" |
@@ -1205,6 +1206,13 @@ class CORE_EXPORT Document : public ContainerNode, |
Document& ensureTemplateDocument(); |
Document* templateDocumentHost() { return m_templateDocumentHost; } |
+ mojom::blink::EngagementLevel getEngagementLevel() const { |
+ return m_engagementLevel; |
+ } |
+ void setEngagementLevel(mojom::blink::EngagementLevel level) { |
+ m_engagementLevel = level; |
+ } |
+ |
// TODO(thestig): Rename these and related functions, since we can call them |
// for controls outside of forms as well. |
void didAssociateFormControl(Element*); |
@@ -1670,6 +1678,8 @@ class CORE_EXPORT Document : public ContainerNode, |
Member<PropertyRegistry> m_propertyRegistry; |
unsigned m_passwordCount; |
+ |
+ mojom::EngagementLevel m_engagementLevel; |
}; |
extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |