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

Side by Side Diff: Source/core/html/HTMLFrameOwnerElement.h

Issue 1125053002: Move renderFallbackContent() into FrameOwner interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/FrameOwner.h ('k') | Source/core/html/HTMLObjectElement.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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // LayoutObject when using fallback content. 56 // LayoutObject when using fallback content.
57 LayoutPart* layoutPart() const; 57 LayoutPart* layoutPart() const;
58 58
59 Document* getSVGDocument(ExceptionState&) const; 59 Document* getSVGDocument(ExceptionState&) const;
60 60
61 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } 61 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; }
62 62
63 virtual bool loadedNonEmptyDocument() const { return false; } 63 virtual bool loadedNonEmptyDocument() const { return false; }
64 virtual void didLoadNonEmptyDocument() { } 64 virtual void didLoadNonEmptyDocument() { }
65 65
66 virtual void renderFallbackContent() { }
67
68 virtual bool isObjectElement() const { return false; }
69 void setWidget(PassRefPtrWillBeRawPtr<Widget>); 66 void setWidget(PassRefPtrWillBeRawPtr<Widget>);
70 Widget* ownedWidget() const; 67 Widget* ownedWidget() const;
71 68
72 class UpdateSuspendScope { 69 class UpdateSuspendScope {
73 public: 70 public:
74 UpdateSuspendScope(); 71 UpdateSuspendScope();
75 ~UpdateSuspendScope(); 72 ~UpdateSuspendScope();
76 73
77 private: 74 private:
78 void performDeferredWidgetTreeOperations(); 75 void performDeferredWidgetTreeOperations();
79 }; 76 };
80 77
81 // FrameOwner overrides: 78 // FrameOwner overrides:
82 virtual bool isLocal() const { return true; } 79 bool isLocal() const override { return true; }
83 virtual void dispatchLoad() override; 80 void dispatchLoad() override;
84 virtual SandboxFlags sandboxFlags() const override { return m_sandboxFlags; } 81 SandboxFlags sandboxFlags() const override { return m_sandboxFlags; }
82 void renderFallbackContent() override { }
85 83
86 DECLARE_VIRTUAL_TRACE(); 84 DECLARE_VIRTUAL_TRACE();
87 85
88 protected: 86 protected:
89 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); 87 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
90 void setSandboxFlags(SandboxFlags); 88 void setSandboxFlags(SandboxFlags);
91 89
92 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool lockBackForwardList); 90 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool lockBackForwardList);
93 91
94 private: 92 private:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots(); 129 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots();
132 130
133 RawPtrWillBeMember<Node> m_root; 131 RawPtrWillBeMember<Node> m_root;
134 }; 132 };
135 133
136 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 134 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
137 135
138 } // namespace blink 136 } // namespace blink
139 137
140 #endif // HTMLFrameOwnerElement_h 138 #endif // HTMLFrameOwnerElement_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameOwner.h ('k') | Source/core/html/HTMLObjectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698