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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 | 1309 |
1310 bool isInMainFrame() const; | 1310 bool isInMainFrame() const; |
1311 | 1311 |
1312 void maybeRecordLoadReason(WouldLoadReason); | 1312 void maybeRecordLoadReason(WouldLoadReason); |
1313 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } | 1313 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } |
1314 | 1314 |
1315 PropertyRegistry* propertyRegistry(); | 1315 PropertyRegistry* propertyRegistry(); |
1316 | 1316 |
1317 // Indicates whether the user has interacted with this particular Document. | 1317 // Indicates whether the user has interacted with this particular Document. |
1318 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } | 1318 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } |
1319 // Consume user interaction state. Used for an experiment that restricts | |
1320 // adding history entries to Documents that have had a user gesture since | |
1321 // last history state change. | |
1322 void clearHasReceivedUserGesture() { m_hasReceivedUserGesture = false; } | |
1323 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } | 1319 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } |
1324 | 1320 |
1325 protected: | 1321 protected: |
1326 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1322 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1327 | 1323 |
1328 void didUpdateSecurityOrigin() final; | 1324 void didUpdateSecurityOrigin() final; |
1329 | 1325 |
1330 void clearXMLVersion() { m_xmlVersion = String(); } | 1326 void clearXMLVersion() { m_xmlVersion = String(); } |
1331 | 1327 |
1332 virtual Document* cloneDocumentWithoutChildren(); | 1328 virtual Document* cloneDocumentWithoutChildren(); |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1720 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1725 | 1721 |
1726 } // namespace blink | 1722 } // namespace blink |
1727 | 1723 |
1728 #ifndef NDEBUG | 1724 #ifndef NDEBUG |
1729 // Outside the WebCore namespace for ease of invocation from gdb. | 1725 // Outside the WebCore namespace for ease of invocation from gdb. |
1730 CORE_EXPORT void showLiveDocumentInstances(); | 1726 CORE_EXPORT void showLiveDocumentInstances(); |
1731 #endif | 1727 #endif |
1732 | 1728 |
1733 #endif // Document_h | 1729 #endif // Document_h |
OLD | NEW |