Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2392773002: Reenable framebusting deprecation, change it to allow navigation if iframe has ever had a user gestu (Closed)
Patch Set: TODOs and TouchEventmanager Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 RootScrollerController* rootScrollerController() const { 1276 RootScrollerController* rootScrollerController() const {
1277 return m_rootScrollerController.get(); 1277 return m_rootScrollerController.get();
1278 } 1278 }
1279 1279
1280 bool isInMainFrame() const; 1280 bool isInMainFrame() const;
1281 1281
1282 void onVisibilityMaybeChanged(bool visible); 1282 void onVisibilityMaybeChanged(bool visible);
1283 1283
1284 PropertyRegistry* propertyRegistry(); 1284 PropertyRegistry* propertyRegistry();
1285 1285
1286 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; }
1287 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
Rick Byers 2016/10/06 16:26:46 nit: add a comment documenting the semantics here,
1288
1286 protected: 1289 protected:
1287 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1290 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1288 1291
1289 void didUpdateSecurityOrigin() final; 1292 void didUpdateSecurityOrigin() final;
1290 1293
1291 void clearXMLVersion() { m_xmlVersion = String(); } 1294 void clearXMLVersion() { m_xmlVersion = String(); }
1292 1295
1293 virtual Document* cloneDocumentWithoutChildren(); 1296 virtual Document* cloneDocumentWithoutChildren();
1294 1297
1295 bool importContainerNodeChildren(ContainerNode* oldContainerNode, 1298 bool importContainerNodeChildren(ContainerNode* oldContainerNode,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 String m_xmlVersion; 1524 String m_xmlVersion;
1522 unsigned m_xmlStandalone : 2; 1525 unsigned m_xmlStandalone : 2;
1523 unsigned m_hasXMLDeclaration : 1; 1526 unsigned m_hasXMLDeclaration : 1;
1524 1527
1525 AtomicString m_contentLanguage; 1528 AtomicString m_contentLanguage;
1526 1529
1527 DocumentEncodingData m_encodingData; 1530 DocumentEncodingData m_encodingData;
1528 1531
1529 bool m_designMode; 1532 bool m_designMode;
1530 bool m_isRunningExecCommand; 1533 bool m_isRunningExecCommand;
1534 bool m_hasReceivedUserGesture;
1531 1535
1532 HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument; 1536 HeapHashSet<WeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument;
1533 // Oilpan keeps track of all registered NodeLists. 1537 // Oilpan keeps track of all registered NodeLists.
1534 // TODO(Oilpan): improve - only need to know if a NodeList 1538 // TODO(Oilpan): improve - only need to know if a NodeList
1535 // is currently alive or not for the different types. 1539 // is currently alive or not for the different types.
1536 HeapHashSet<WeakMember<const LiveNodeListBase>> 1540 HeapHashSet<WeakMember<const LiveNodeListBase>>
1537 m_nodeLists[numNodeListInvalidationTypes]; 1541 m_nodeLists[numNodeListInvalidationTypes];
1538 1542
1539 Member<SVGDocumentExtensions> m_svgExtensions; 1543 Member<SVGDocumentExtensions> m_svgExtensions;
1540 1544
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1689 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1686 1690
1687 } // namespace blink 1691 } // namespace blink
1688 1692
1689 #ifndef NDEBUG 1693 #ifndef NDEBUG
1690 // Outside the WebCore namespace for ease of invocation from gdb. 1694 // Outside the WebCore namespace for ease of invocation from gdb.
1691 CORE_EXPORT void showLiveDocumentInstances(); 1695 CORE_EXPORT void showLiveDocumentInstances();
1692 #endif 1696 #endif
1693 1697
1694 #endif // Document_h 1698 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698