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

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

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: snapshot Dec19 Created 4 years 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 class LayoutPoint; 128 class LayoutPoint;
129 class LayoutView; 129 class LayoutView;
130 class LayoutViewItem; 130 class LayoutViewItem;
131 class LiveNodeListBase; 131 class LiveNodeListBase;
132 class LocalDOMWindow; 132 class LocalDOMWindow;
133 class Locale; 133 class Locale;
134 class LocalFrame; 134 class LocalFrame;
135 class Location; 135 class Location;
136 class MediaQueryListListener; 136 class MediaQueryListListener;
137 class MediaQueryMatcher; 137 class MediaQueryMatcher;
138 class ModuleMap;
138 class NodeFilter; 139 class NodeFilter;
139 class NodeIterator; 140 class NodeIterator;
140 class NthIndexCache; 141 class NthIndexCache;
141 class OriginAccessEntry; 142 class OriginAccessEntry;
142 class Page; 143 class Page;
143 class PlatformMouseEvent; 144 class PlatformMouseEvent;
144 class ProcessingInstruction; 145 class ProcessingInstruction;
145 class PropertyRegistry; 146 class PropertyRegistry;
146 class QualifiedName; 147 class QualifiedName;
147 class Range; 148 class Range;
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 return *m_rootScrollerController; 1284 return *m_rootScrollerController;
1284 } 1285 }
1285 1286
1286 bool isInMainFrame() const; 1287 bool isInMainFrame() const;
1287 1288
1288 void maybeRecordLoadReason(WouldLoadReason); 1289 void maybeRecordLoadReason(WouldLoadReason);
1289 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } 1290 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; }
1290 1291
1291 PropertyRegistry* propertyRegistry(); 1292 PropertyRegistry* propertyRegistry();
1292 1293
1294 ModuleMap* ensureModuleMap();
1295
1293 // Indicates whether the user has interacted with this particular Document. 1296 // Indicates whether the user has interacted with this particular Document.
1294 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } 1297 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; }
1295 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } 1298 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
1296 1299
1297 // Document maintains a counter of visible non-secure password 1300 // Document maintains a counter of visible non-secure password
1298 // fields in the page. Used to notify the embedder when all visible 1301 // fields in the page. Used to notify the embedder when all visible
1299 // non-secure passwords fields are no longer visible. 1302 // non-secure passwords fields are no longer visible.
1300 void incrementPasswordCount(); 1303 void incrementPasswordCount();
1301 void decrementPasswordCount(); 1304 void decrementPasswordCount();
1302 1305
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 int m_nodeCount; 1655 int m_nodeCount;
1653 1656
1654 bool m_mayContainV0Shadow = false; 1657 bool m_mayContainV0Shadow = false;
1655 1658
1656 Member<SnapCoordinator> m_snapCoordinator; 1659 Member<SnapCoordinator> m_snapCoordinator;
1657 1660
1658 WouldLoadReason m_wouldLoadReason; 1661 WouldLoadReason m_wouldLoadReason;
1659 1662
1660 Member<PropertyRegistry> m_propertyRegistry; 1663 Member<PropertyRegistry> m_propertyRegistry;
1661 1664
1665 Member<ModuleMap> m_moduleMap;
1666
1662 unsigned m_passwordCount; 1667 unsigned m_passwordCount;
1663 1668
1664 TaskHandle m_sensitiveInputVisibilityTask; 1669 TaskHandle m_sensitiveInputVisibilityTask;
1665 }; 1670 };
1666 1671
1667 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1672 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1668 1673
1669 inline bool Document::shouldOverrideLegacyDescription( 1674 inline bool Document::shouldOverrideLegacyDescription(
1670 ViewportDescription::Type origin) const { 1675 ViewportDescription::Type origin) const {
1671 // The different (legacy) meta tags have different priorities based on the 1676 // The different (legacy) meta tags have different priorities based on the
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1714 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1710 1715
1711 } // namespace blink 1716 } // namespace blink
1712 1717
1713 #ifndef NDEBUG 1718 #ifndef NDEBUG
1714 // Outside the WebCore namespace for ease of invocation from gdb. 1719 // Outside the WebCore namespace for ease of invocation from gdb.
1715 CORE_EXPORT void showLiveDocumentInstances(); 1720 CORE_EXPORT void showLiveDocumentInstances();
1716 #endif 1721 #endif
1717 1722
1718 #endif // Document_h 1723 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698