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

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

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/engine/core/dom/DocumentFragment.cpp ('k') | sky/engine/core/dom/DocumentInit.cpp » ('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) 2013 Google Inc. All rights reserved. 9 * Copyright (C) 2013 Google Inc. All rights reserved.
10 * 10 *
(...skipping 19 matching lines...) Expand all
30 30
31 #include "sky/engine/platform/heap/Handle.h" 31 #include "sky/engine/platform/heap/Handle.h"
32 #include "sky/engine/platform/weborigin/KURL.h" 32 #include "sky/engine/platform/weborigin/KURL.h"
33 #include "sky/engine/wtf/PassRefPtr.h" 33 #include "sky/engine/wtf/PassRefPtr.h"
34 #include "sky/engine/wtf/RefPtr.h" 34 #include "sky/engine/wtf/RefPtr.h"
35 #include "sky/engine/wtf/WeakPtr.h" 35 #include "sky/engine/wtf/WeakPtr.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class Document; 39 class Document;
40 class HTMLImportsController;
41 class LocalFrame; 40 class LocalFrame;
42 class CustomElementRegistry; 41 class CustomElementRegistry;
43 class Settings; 42 class Settings;
44 43
45 class DocumentInit final { 44 class DocumentInit final {
46 STACK_ALLOCATED(); 45 STACK_ALLOCATED();
47 public: 46 public:
48 explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtr<Documen t> = nullptr, HTMLImportsController* = 0); 47 explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtr<Documen t> = nullptr);
49 DocumentInit(const DocumentInit&); 48 DocumentInit(const DocumentInit&);
50 ~DocumentInit(); 49 ~DocumentInit();
51 50
52 const KURL& url() const { return m_url; } 51 const KURL& url() const { return m_url; }
53 LocalFrame* frame() const { return m_frame; } 52 LocalFrame* frame() const { return m_frame; }
54 HTMLImportsController* importsController() const { return m_importsControlle r; }
55 53
56 bool shouldSetURL() const; 54 bool shouldSetURL() const;
57 bool isSeamlessAllowedFor(Document* child) const; 55 bool isSeamlessAllowedFor(Document* child) const;
58 56
59 Document* parent() const { return m_parent.get(); } 57 Document* parent() const { return m_parent.get(); }
60 Document* owner() const { return m_owner.get(); } 58 Document* owner() const { return m_owner.get(); }
61 LocalFrame* ownerFrame() const; 59 LocalFrame* ownerFrame() const;
62 Settings* settings() const; 60 Settings* settings() const;
63 61
64 DocumentInit& withElementRegistry(CustomElementRegistry&); 62 DocumentInit& withElementRegistry(CustomElementRegistry&);
65 WeakPtr<Document> contextDocument() const; 63 WeakPtr<Document> contextDocument() const;
66 64
67 CustomElementRegistry* elementRegistry() const { 65 CustomElementRegistry* elementRegistry() const {
68 return m_elementRegistry.get(); 66 return m_elementRegistry.get();
69 } 67 }
70 68
71 static DocumentInit fromContext(WeakPtr<Document> contextDocument, const KUR L& = KURL()); 69 static DocumentInit fromContext(WeakPtr<Document> contextDocument, const KUR L& = KURL());
72 70
73 private: 71 private:
74 LocalFrame* frameForSecurityContext() const; 72 LocalFrame* frameForSecurityContext() const;
75 73
76 KURL m_url; 74 KURL m_url;
77 LocalFrame* m_frame; 75 LocalFrame* m_frame;
78 RefPtr<Document> m_parent; 76 RefPtr<Document> m_parent;
79 RefPtr<Document> m_owner; 77 RefPtr<Document> m_owner;
80 WeakPtr<Document> m_contextDocument; 78 WeakPtr<Document> m_contextDocument;
81 RawPtr<HTMLImportsController> m_importsController;
82 RefPtr<CustomElementRegistry> m_elementRegistry; 79 RefPtr<CustomElementRegistry> m_elementRegistry;
83 }; 80 };
84 81
85 } // namespace blink 82 } // namespace blink
86 83
87 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTINIT_H_ 84 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTINIT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DocumentFragment.cpp ('k') | sky/engine/core/dom/DocumentInit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698