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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/dom/DOMTokenList.h ('k') | sky/engine/core/dom/DocumentMarker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 enum DocumentClass { 138 enum DocumentClass {
139 DefaultDocumentClass = 0, 139 DefaultDocumentClass = 0,
140 HTMLDocumentClass = 1, 140 HTMLDocumentClass = 1,
141 MediaDocumentClass = 1 << 4, 141 MediaDocumentClass = 1 << 4,
142 }; 142 };
143 143
144 typedef unsigned char DocumentClassFlags; 144 typedef unsigned char DocumentClassFlags;
145 145
146 class Document; 146 class Document;
147 147
148 class DocumentVisibilityObserver : public DummyBase<void> { 148 class DocumentVisibilityObserver {
149 public: 149 public:
150 DocumentVisibilityObserver(Document&); 150 DocumentVisibilityObserver(Document&);
151 virtual ~DocumentVisibilityObserver(); 151 virtual ~DocumentVisibilityObserver();
152 152
153 virtual void didChangeVisibilityState(PageVisibilityState) = 0; 153 virtual void didChangeVisibilityState(PageVisibilityState) = 0;
154 154
155 // Classes that inherit Node and DocumentVisibilityObserver must have a 155 // Classes that inherit Node and DocumentVisibilityObserver must have a
156 // virtual override of Node::didMoveToNewDocument that calls 156 // virtual override of Node::didMoveToNewDocument that calls
157 // DocumentVisibilityObserver::setDocument 157 // DocumentVisibilityObserver::setDocument
158 void setObservedDocument(Document&); 158 void setObservedDocument(Document&);
159 159
160 private: 160 private:
161 void registerObserver(Document&); 161 void registerObserver(Document&);
162 void unregisterObserver(); 162 void unregisterObserver();
163 163
164 RawPtr<Document> m_document; 164 RawPtr<Document> m_document;
165 }; 165 };
166 166
167 class Document : public ContainerNode, public TreeScope, public ExecutionContext , public ExecutionContextClient 167 class Document : public ContainerNode, public TreeScope, public ExecutionContext , public ExecutionContextClient
168 , public DocumentSupplementable, public LifecycleContext<Document>, public R esourceClient { 168 , public DocumentSupplementable, public LifecycleContext<Document>, public R esourceClient {
169 DEFINE_WRAPPERTYPEINFO(); 169 DEFINE_WRAPPERTYPEINFO();
170 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document);
171 public: 170 public:
172 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen tInit()) 171 static PassRefPtr<Document> create(const DocumentInit& initializer = Documen tInit())
173 { 172 {
174 return adoptRef(new Document(initializer)); 173 return adoptRef(new Document(initializer));
175 } 174 }
176 virtual ~Document(); 175 virtual ~Document();
177 176
178 // Called by JS. 177 // Called by JS.
179 static PassRefPtr<Document> create(Document&); 178 static PassRefPtr<Document> create(Document&);
180 179
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 Node* eventTargetNodeForDocument(Document*); 869 Node* eventTargetNodeForDocument(Document*);
871 870
872 } // namespace blink 871 } // namespace blink
873 872
874 #ifndef NDEBUG 873 #ifndef NDEBUG
875 // Outside the WebCore namespace for ease of invocation from gdb. 874 // Outside the WebCore namespace for ease of invocation from gdb.
876 void showLiveDocumentInstances(); 875 void showLiveDocumentInstances();
877 #endif 876 #endif
878 877
879 #endif // Document_h 878 #endif // Document_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DOMTokenList.h ('k') | sky/engine/core/dom/DocumentMarker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698