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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 } | 1291 } |
1292 | 1292 |
1293 bool isInMainFrame() const; | 1293 bool isInMainFrame() const; |
1294 | 1294 |
1295 void maybeRecordLoadReason(WouldLoadReason); | 1295 void maybeRecordLoadReason(WouldLoadReason); |
1296 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } | 1296 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } |
1297 | 1297 |
1298 const PropertyRegistry* propertyRegistry() const; | 1298 const PropertyRegistry* propertyRegistry() const; |
1299 PropertyRegistry* propertyRegistry(); | 1299 PropertyRegistry* propertyRegistry(); |
1300 | 1300 |
1301 // Indicates whether the user has interacted with this particular Document. | |
1302 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } | |
1303 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } | |
1304 | |
1305 // Document maintains a counter of visible non-secure password | 1301 // Document maintains a counter of visible non-secure password |
1306 // fields in the page. Used to notify the embedder when all visible | 1302 // fields in the page. Used to notify the embedder when all visible |
1307 // non-secure passwords fields are no longer visible. | 1303 // non-secure passwords fields are no longer visible. |
1308 void incrementPasswordCount(); | 1304 void incrementPasswordCount(); |
1309 void decrementPasswordCount(); | 1305 void decrementPasswordCount(); |
1310 | 1306 |
1311 protected: | 1307 protected: |
1312 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1308 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1313 | 1309 |
1314 void didUpdateSecurityOrigin() final; | 1310 void didUpdateSecurityOrigin() final; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 String m_xmlVersion; | 1549 String m_xmlVersion; |
1554 unsigned m_xmlStandalone : 2; | 1550 unsigned m_xmlStandalone : 2; |
1555 unsigned m_hasXMLDeclaration : 1; | 1551 unsigned m_hasXMLDeclaration : 1; |
1556 | 1552 |
1557 AtomicString m_contentLanguage; | 1553 AtomicString m_contentLanguage; |
1558 | 1554 |
1559 DocumentEncodingData m_encodingData; | 1555 DocumentEncodingData m_encodingData; |
1560 | 1556 |
1561 bool m_designMode; | 1557 bool m_designMode; |
1562 bool m_isRunningExecCommand; | 1558 bool m_isRunningExecCommand; |
1563 bool m_hasReceivedUserGesture; | |
1564 | 1559 |
1565 HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument; | 1560 HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument; |
1566 // Oilpan keeps track of all registered NodeLists. | 1561 // Oilpan keeps track of all registered NodeLists. |
1567 // TODO(Oilpan): improve - only need to know if a NodeList | 1562 // TODO(Oilpan): improve - only need to know if a NodeList |
1568 // is currently alive or not for the different types. | 1563 // is currently alive or not for the different types. |
1569 HeapHashSet<WeakMember<const LiveNodeListBase>> | 1564 HeapHashSet<WeakMember<const LiveNodeListBase>> |
1570 m_nodeLists[numNodeListInvalidationTypes]; | 1565 m_nodeLists[numNodeListInvalidationTypes]; |
1571 | 1566 |
1572 Member<SVGDocumentExtensions> m_svgExtensions; | 1567 Member<SVGDocumentExtensions> m_svgExtensions; |
1573 | 1568 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1714 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1720 | 1715 |
1721 } // namespace blink | 1716 } // namespace blink |
1722 | 1717 |
1723 #ifndef NDEBUG | 1718 #ifndef NDEBUG |
1724 // Outside the WebCore namespace for ease of invocation from gdb. | 1719 // Outside the WebCore namespace for ease of invocation from gdb. |
1725 CORE_EXPORT void showLiveDocumentInstances(); | 1720 CORE_EXPORT void showLiveDocumentInstances(); |
1726 #endif | 1721 #endif |
1727 | 1722 |
1728 #endif // Document_h | 1723 #endif // Document_h |
OLD | NEW |