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

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

Issue 2939223003: Add DocumentShutdown{Notifier,Observer} (Closed)
Patch Set: Add CORE_EXPORT to DocumentShutdownNotifier Created 3 years, 6 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 20 matching lines...) Expand all
31 #define Document_h 31 #define Document_h
32 32
33 #include <memory> 33 #include <memory>
34 #include "bindings/core/v8/ExceptionState.h" 34 #include "bindings/core/v8/ExceptionState.h"
35 #include "bindings/core/v8/ScriptValue.h" 35 #include "bindings/core/v8/ScriptValue.h"
36 #include "core/CoreExport.h" 36 #include "core/CoreExport.h"
37 #include "core/dom/ContainerNode.h" 37 #include "core/dom/ContainerNode.h"
38 #include "core/dom/DocumentEncodingData.h" 38 #include "core/dom/DocumentEncodingData.h"
39 #include "core/dom/DocumentInit.h" 39 #include "core/dom/DocumentInit.h"
40 #include "core/dom/DocumentLifecycle.h" 40 #include "core/dom/DocumentLifecycle.h"
41 #include "core/dom/DocumentShutdownNotifier.h"
42 #include "core/dom/DocumentShutdownObserver.h"
41 #include "core/dom/DocumentTiming.h" 43 #include "core/dom/DocumentTiming.h"
42 #include "core/dom/ExecutionContext.h" 44 #include "core/dom/ExecutionContext.h"
43 #include "core/dom/MutationObserver.h" 45 #include "core/dom/MutationObserver.h"
44 #include "core/dom/SynchronousMutationNotifier.h" 46 #include "core/dom/SynchronousMutationNotifier.h"
45 #include "core/dom/SynchronousMutationObserver.h" 47 #include "core/dom/SynchronousMutationObserver.h"
46 #include "core/dom/Text.h" 48 #include "core/dom/Text.h"
47 #include "core/dom/TextLinkColors.h" 49 #include "core/dom/TextLinkColors.h"
48 #include "core/dom/TreeScope.h" 50 #include "core/dom/TreeScope.h"
49 #include "core/dom/UserActionElementSet.h" 51 #include "core/dom/UserActionElementSet.h"
50 #include "core/dom/ViewportDescription.h" 52 #include "core/dom/ViewportDescription.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 247
246 kCount, 248 kCount,
247 }; 249 };
248 250
249 using DocumentClassFlags = unsigned char; 251 using DocumentClassFlags = unsigned char;
250 252
251 class CORE_EXPORT Document : public ContainerNode, 253 class CORE_EXPORT Document : public ContainerNode,
252 public TreeScope, 254 public TreeScope,
253 public SecurityContext, 255 public SecurityContext,
254 public ExecutionContext, 256 public ExecutionContext,
257 public DocumentShutdownNotifier,
255 public SynchronousMutationNotifier, 258 public SynchronousMutationNotifier,
256 public Supplementable<Document> { 259 public Supplementable<Document> {
257 DEFINE_WRAPPERTYPEINFO(); 260 DEFINE_WRAPPERTYPEINFO();
258 USING_GARBAGE_COLLECTED_MIXIN(Document); 261 USING_GARBAGE_COLLECTED_MIXIN(Document);
259 262
260 public: 263 public:
261 static Document* Create(const DocumentInit& initializer = DocumentInit()) { 264 static Document* Create(const DocumentInit& initializer = DocumentInit()) {
262 return new Document(initializer); 265 return new Document(initializer);
263 } 266 }
264 // Factory for web-exposed Document constructor. The argument document must be 267 // Factory for web-exposed Document constructor. The argument document must be
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1736 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1734 1737
1735 } // namespace blink 1738 } // namespace blink
1736 1739
1737 #ifndef NDEBUG 1740 #ifndef NDEBUG
1738 // Outside the WebCore namespace for ease of invocation from gdb. 1741 // Outside the WebCore namespace for ease of invocation from gdb.
1739 CORE_EXPORT void showLiveDocumentInstances(); 1742 CORE_EXPORT void showLiveDocumentInstances();
1740 #endif 1743 #endif
1741 1744
1742 #endif // Document_h 1745 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/BUILD.gn ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698