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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 class ElementRegistrationOptions; | 101 class ElementRegistrationOptions; |
102 class Event; | 102 class Event; |
103 class EventFactoryBase; | 103 class EventFactoryBase; |
104 class EventListener; | 104 class EventListener; |
105 template <typename EventType> | 105 template <typename EventType> |
106 class EventWithHitTestResults; | 106 class EventWithHitTestResults; |
107 class ExceptionState; | 107 class ExceptionState; |
108 class FloatQuad; | 108 class FloatQuad; |
109 class FloatRect; | 109 class FloatRect; |
110 class FormController; | 110 class FormController; |
111 class FormElementObserver; | |
111 class FrameRequestCallback; | 112 class FrameRequestCallback; |
112 class FrameView; | 113 class FrameView; |
113 class HTMLAllCollection; | 114 class HTMLAllCollection; |
114 class HTMLBodyElement; | 115 class HTMLBodyElement; |
115 class HTMLCollection; | 116 class HTMLCollection; |
116 class HTMLDialogElement; | 117 class HTMLDialogElement; |
117 class HTMLElement; | 118 class HTMLElement; |
118 class HTMLFrameOwnerElement; | 119 class HTMLFrameOwnerElement; |
119 class HTMLHeadElement; | 120 class HTMLHeadElement; |
120 class HTMLImportLoader; | 121 class HTMLImportLoader; |
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1313 PropertyRegistry* GetPropertyRegistry(); | 1314 PropertyRegistry* GetPropertyRegistry(); |
1314 | 1315 |
1315 // Document maintains a counter of visible non-secure password | 1316 // Document maintains a counter of visible non-secure password |
1316 // fields in the page. Used to notify the embedder when all visible | 1317 // fields in the page. Used to notify the embedder when all visible |
1317 // non-secure passwords fields are no longer visible. | 1318 // non-secure passwords fields are no longer visible. |
1318 void IncrementPasswordCount(); | 1319 void IncrementPasswordCount(); |
1319 void DecrementPasswordCount(); | 1320 void DecrementPasswordCount(); |
1320 | 1321 |
1321 CoreProbeSink* GetProbeSink() final; | 1322 CoreProbeSink* GetProbeSink() final; |
1322 | 1323 |
1324 FormElementObserver* GetFormElementObserver(); | |
1325 | |
1323 protected: | 1326 protected: |
1324 Document(const DocumentInit&, DocumentClassFlags = kDefaultDocumentClass); | 1327 Document(const DocumentInit&, DocumentClassFlags = kDefaultDocumentClass); |
1325 | 1328 |
1326 void DidUpdateSecurityOrigin() final; | 1329 void DidUpdateSecurityOrigin() final; |
1327 | 1330 |
1328 void ClearXMLVersion() { xml_version_ = String(); } | 1331 void ClearXMLVersion() { xml_version_ = String(); } |
1329 | 1332 |
1330 virtual Document* CloneDocumentWithoutChildren(); | 1333 virtual Document* CloneDocumentWithoutChildren(); |
1331 | 1334 |
1332 bool ImportContainerNodeChildren(ContainerNode* old_container_node, | 1335 bool ImportContainerNodeChildren(ContainerNode* old_container_node, |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1680 | 1683 |
1681 Member<PropertyRegistry> property_registry_; | 1684 Member<PropertyRegistry> property_registry_; |
1682 | 1685 |
1683 unsigned password_count_; | 1686 unsigned password_count_; |
1684 | 1687 |
1685 TaskHandle sensitive_input_visibility_task_; | 1688 TaskHandle sensitive_input_visibility_task_; |
1686 | 1689 |
1687 mojom::EngagementLevel engagement_level_; | 1690 mojom::EngagementLevel engagement_level_; |
1688 | 1691 |
1689 Member<NetworkStateObserver> network_state_observer_; | 1692 Member<NetworkStateObserver> network_state_observer_; |
1693 | |
1694 Member<FormElementObserver> form_element_observer_; | |
dglazkov
2017/05/11 21:09:05
Does it have to be a member of Document? I am prim
| |
1690 }; | 1695 }; |
1691 | 1696 |
1692 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; | 1697 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |
1693 | 1698 |
1694 inline bool Document::ShouldOverrideLegacyDescription( | 1699 inline bool Document::ShouldOverrideLegacyDescription( |
1695 ViewportDescription::Type origin) const { | 1700 ViewportDescription::Type origin) const { |
1696 // The different (legacy) meta tags have different priorities based on the | 1701 // The different (legacy) meta tags have different priorities based on the |
1697 // type regardless of which order they appear in the DOM. The priority is | 1702 // type regardless of which order they appear in the DOM. The priority is |
1698 // given by the ViewportDescription::Type enum. | 1703 // given by the ViewportDescription::Type enum. |
1699 return origin >= legacy_viewport_description_.type; | 1704 return origin >= legacy_viewport_description_.type; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1734 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1739 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1735 | 1740 |
1736 } // namespace blink | 1741 } // namespace blink |
1737 | 1742 |
1738 #ifndef NDEBUG | 1743 #ifndef NDEBUG |
1739 // Outside the WebCore namespace for ease of invocation from gdb. | 1744 // Outside the WebCore namespace for ease of invocation from gdb. |
1740 CORE_EXPORT void showLiveDocumentInstances(); | 1745 CORE_EXPORT void showLiveDocumentInstances(); |
1741 #endif | 1746 #endif |
1742 | 1747 |
1743 #endif // Document_h | 1748 #endif // Document_h |
OLD | NEW |