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

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

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLFrameElementBase.h ('k') | Source/core/html/HTMLFrameSetElement.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 22 matching lines...) Expand all
33 33
34 class LocalDOMWindow; 34 class LocalDOMWindow;
35 class ExceptionState; 35 class ExceptionState;
36 class Frame; 36 class Frame;
37 class LayoutPart; 37 class LayoutPart;
38 class Widget; 38 class Widget;
39 39
40 class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement, public FrameOwner { 40 class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement, public FrameOwner {
41 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameOwnerElement); 41 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameOwnerElement);
42 public: 42 public:
43 virtual ~HTMLFrameOwnerElement(); 43 ~HTMLFrameOwnerElement() override;
44 44
45 Frame* contentFrame() const { return m_contentFrame; } 45 Frame* contentFrame() const { return m_contentFrame; }
46 DOMWindow* contentWindow() const; 46 DOMWindow* contentWindow() const;
47 Document* contentDocument() const; 47 Document* contentDocument() const;
48 48
49 void setContentFrame(Frame&); 49 void setContentFrame(Frame&);
50 void clearContentFrame(); 50 void clearContentFrame();
51 51
52 virtual void disconnectContentFrame(); 52 virtual void disconnectContentFrame();
53 53
(...skipping 29 matching lines...) Expand all
83 83
84 DECLARE_VIRTUAL_TRACE(); 84 DECLARE_VIRTUAL_TRACE();
85 85
86 protected: 86 protected:
87 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); 87 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
88 void setSandboxFlags(SandboxFlags); 88 void setSandboxFlags(SandboxFlags);
89 89
90 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool lockBackForwardList); 90 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool lockBackForwardList);
91 91
92 private: 92 private:
93 virtual bool isKeyboardFocusable() const override; 93 bool isKeyboardFocusable() const override;
94 virtual bool isFrameOwnerElement() const override final { return true; } 94 bool isFrameOwnerElement() const final { return true; }
95 95
96 RawPtrWillBeMember<Frame> m_contentFrame; 96 RawPtrWillBeMember<Frame> m_contentFrame;
97 RefPtrWillBeMember<Widget> m_widget; 97 RefPtrWillBeMember<Widget> m_widget;
98 SandboxFlags m_sandboxFlags; 98 SandboxFlags m_sandboxFlags;
99 }; 99 };
100 100
101 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); 101 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement());
102 102
103 class SubframeLoadingDisabler { 103 class SubframeLoadingDisabler {
104 STACK_ALLOCATED(); 104 STACK_ALLOCATED();
(...skipping 24 matching lines...) Expand all
129 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots(); 129 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots();
130 130
131 RawPtrWillBeMember<Node> m_root; 131 RawPtrWillBeMember<Node> m_root;
132 }; 132 };
133 133
134 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 134 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // HTMLFrameOwnerElement_h 138 #endif // HTMLFrameOwnerElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameElementBase.h ('k') | Source/core/html/HTMLFrameSetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698