OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "core/html/parser/ParserSynchronizationPolicy.h" | 56 #include "core/html/parser/ParserSynchronizationPolicy.h" |
57 #include "core/page/PageVisibilityState.h" | 57 #include "core/page/PageVisibilityState.h" |
58 #include "platform/Length.h" | 58 #include "platform/Length.h" |
59 #include "platform/Timer.h" | 59 #include "platform/Timer.h" |
60 #include "platform/WebTaskRunner.h" | 60 #include "platform/WebTaskRunner.h" |
61 #include "platform/scroll/ScrollTypes.h" | 61 #include "platform/scroll/ScrollTypes.h" |
62 #include "platform/weborigin/KURL.h" | 62 #include "platform/weborigin/KURL.h" |
63 #include "platform/weborigin/ReferrerPolicy.h" | 63 #include "platform/weborigin/ReferrerPolicy.h" |
64 #include "public/platform/WebFocusType.h" | 64 #include "public/platform/WebFocusType.h" |
65 #include "public/platform/WebInsecureRequestPolicy.h" | 65 #include "public/platform/WebInsecureRequestPolicy.h" |
| 66 #include "public/platform/site_engagement.mojom-blink.h" |
66 #include "wtf/Compiler.h" | 67 #include "wtf/Compiler.h" |
67 #include "wtf/HashSet.h" | 68 #include "wtf/HashSet.h" |
68 #include "wtf/PassRefPtr.h" | 69 #include "wtf/PassRefPtr.h" |
69 #include <memory> | 70 #include <memory> |
70 | 71 |
71 namespace blink { | 72 namespace blink { |
72 | 73 |
73 class AnimationClock; | 74 class AnimationClock; |
74 class DocumentTimeline; | 75 class DocumentTimeline; |
75 class AXObjectCache; | 76 class AXObjectCache; |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 return m_topLayerElements; | 1188 return m_topLayerElements; |
1188 } | 1189 } |
1189 HTMLDialogElement* activeModalDialog() const; | 1190 HTMLDialogElement* activeModalDialog() const; |
1190 | 1191 |
1191 // A non-null m_templateDocumentHost implies that |this| was created by | 1192 // A non-null m_templateDocumentHost implies that |this| was created by |
1192 // ensureTemplateDocument(). | 1193 // ensureTemplateDocument(). |
1193 bool isTemplateDocument() const { return !!m_templateDocumentHost; } | 1194 bool isTemplateDocument() const { return !!m_templateDocumentHost; } |
1194 Document& ensureTemplateDocument(); | 1195 Document& ensureTemplateDocument(); |
1195 Document* templateDocumentHost() { return m_templateDocumentHost; } | 1196 Document* templateDocumentHost() { return m_templateDocumentHost; } |
1196 | 1197 |
| 1198 mojom::blink::EngagementLevel getEngagementLevel() const { |
| 1199 return m_engagementLevel; |
| 1200 } |
| 1201 void setEngagementLevel(mojom::blink::EngagementLevel level) { |
| 1202 m_engagementLevel = level; |
| 1203 } |
| 1204 |
1197 // TODO(thestig): Rename these and related functions, since we can call them | 1205 // TODO(thestig): Rename these and related functions, since we can call them |
1198 // for controls outside of forms as well. | 1206 // for controls outside of forms as well. |
1199 void didAssociateFormControl(Element*); | 1207 void didAssociateFormControl(Element*); |
1200 | 1208 |
1201 void addConsoleMessage(ConsoleMessage*) final; | 1209 void addConsoleMessage(ConsoleMessage*) final; |
1202 | 1210 |
1203 LocalDOMWindow* executingWindow() const final; | 1211 LocalDOMWindow* executingWindow() const final; |
1204 LocalFrame* executingFrame(); | 1212 LocalFrame* executingFrame(); |
1205 | 1213 |
1206 DocumentLifecycle& lifecycle() { return m_lifecycle; } | 1214 DocumentLifecycle& lifecycle() { return m_lifecycle; } |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 | 1663 |
1656 Member<SnapCoordinator> m_snapCoordinator; | 1664 Member<SnapCoordinator> m_snapCoordinator; |
1657 | 1665 |
1658 WouldLoadReason m_wouldLoadReason; | 1666 WouldLoadReason m_wouldLoadReason; |
1659 | 1667 |
1660 Member<PropertyRegistry> m_propertyRegistry; | 1668 Member<PropertyRegistry> m_propertyRegistry; |
1661 | 1669 |
1662 unsigned m_passwordCount; | 1670 unsigned m_passwordCount; |
1663 | 1671 |
1664 TaskHandle m_sensitiveInputVisibilityTask; | 1672 TaskHandle m_sensitiveInputVisibilityTask; |
| 1673 |
| 1674 mojom::EngagementLevel m_engagementLevel; |
1665 }; | 1675 }; |
1666 | 1676 |
1667 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; | 1677 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |
1668 | 1678 |
1669 inline bool Document::shouldOverrideLegacyDescription( | 1679 inline bool Document::shouldOverrideLegacyDescription( |
1670 ViewportDescription::Type origin) const { | 1680 ViewportDescription::Type origin) const { |
1671 // The different (legacy) meta tags have different priorities based on the | 1681 // The different (legacy) meta tags have different priorities based on the |
1672 // type regardless of which order they appear in the DOM. The priority is | 1682 // type regardless of which order they appear in the DOM. The priority is |
1673 // given by the ViewportDescription::Type enum. | 1683 // given by the ViewportDescription::Type enum. |
1674 return origin >= m_legacyViewportDescription.type; | 1684 return origin >= m_legacyViewportDescription.type; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1719 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1710 | 1720 |
1711 } // namespace blink | 1721 } // namespace blink |
1712 | 1722 |
1713 #ifndef NDEBUG | 1723 #ifndef NDEBUG |
1714 // Outside the WebCore namespace for ease of invocation from gdb. | 1724 // Outside the WebCore namespace for ease of invocation from gdb. |
1715 CORE_EXPORT void showLiveDocumentInstances(); | 1725 CORE_EXPORT void showLiveDocumentInstances(); |
1716 #endif | 1726 #endif |
1717 | 1727 |
1718 #endif // Document_h | 1728 #endif // Document_h |
OLD | NEW |