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

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

Issue 2722953003: Part 1 to rename platform/Widget to platform/FrameViewBase. (Closed)
Patch Set: Created 3 years, 9 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) 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 16 matching lines...) Expand all
27 #include "core/html/HTMLElement.h" 27 #include "core/html/HTMLElement.h"
28 #include "platform/heap/Handle.h" 28 #include "platform/heap/Handle.h"
29 #include "platform/scroll/ScrollTypes.h" 29 #include "platform/scroll/ScrollTypes.h"
30 #include "platform/weborigin/SecurityPolicy.h" 30 #include "platform/weborigin/SecurityPolicy.h"
31 #include "wtf/HashCountedSet.h" 31 #include "wtf/HashCountedSet.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class ExceptionState; 35 class ExceptionState;
36 class Frame; 36 class Frame;
37 class FrameViewBase;
37 class LayoutPart; 38 class LayoutPart;
38 class Widget;
39 39
40 class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement, 40 class CORE_EXPORT HTMLFrameOwnerElement : public HTMLElement,
41 public FrameOwner { 41 public FrameOwner {
42 USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameOwnerElement); 42 USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameOwnerElement);
43 43
44 public: 44 public:
45 ~HTMLFrameOwnerElement() override; 45 ~HTMLFrameOwnerElement() override;
46 46
47 DOMWindow* contentWindow() const; 47 DOMWindow* contentWindow() const;
48 Document* contentDocument() const; 48 Document* contentDocument() const;
49 49
50 virtual void disconnectContentFrame(); 50 virtual void disconnectContentFrame();
51 51
52 // Most subclasses use LayoutPart (either LayoutEmbeddedObject or 52 // Most subclasses use LayoutPart (either LayoutEmbeddedObject or
53 // LayoutIFrame) except for HTMLObjectElement and HTMLEmbedElement which may 53 // LayoutIFrame) except for HTMLObjectElement and HTMLEmbedElement which may
54 // return any LayoutObject when using fallback content. 54 // return any LayoutObject when using fallback content.
55 LayoutPart* layoutPart() const; 55 LayoutPart* layoutPart() const;
56 56
57 Document* getSVGDocument(ExceptionState&) const; 57 Document* getSVGDocument(ExceptionState&) const;
58 58
59 virtual bool loadedNonEmptyDocument() const { return false; } 59 virtual bool loadedNonEmptyDocument() const { return false; }
60 virtual void didLoadNonEmptyDocument() {} 60 virtual void didLoadNonEmptyDocument() {}
61 61
62 void setWidget(Widget*); 62 void setWidget(FrameViewBase*);
63 Widget* releaseWidget(); 63 FrameViewBase* releaseWidget();
64 Widget* ownedWidget() const; 64 FrameViewBase* ownedWidget() const;
65 65
66 class UpdateSuspendScope { 66 class UpdateSuspendScope {
67 STACK_ALLOCATED(); 67 STACK_ALLOCATED();
68 68
69 public: 69 public:
70 UpdateSuspendScope(); 70 UpdateSuspendScope();
71 ~UpdateSuspendScope(); 71 ~UpdateSuspendScope();
72 72
73 private: 73 private:
74 void performDeferredWidgetTreeOperations(); 74 void performDeferredWidgetTreeOperations();
(...skipping 24 matching lines...) Expand all
99 99
100 protected: 100 protected:
101 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); 101 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
102 void setSandboxFlags(SandboxFlags); 102 void setSandboxFlags(SandboxFlags);
103 103
104 bool loadOrRedirectSubframe(const KURL&, 104 bool loadOrRedirectSubframe(const KURL&,
105 const AtomicString& frameName, 105 const AtomicString& frameName,
106 bool replaceCurrentItem); 106 bool replaceCurrentItem);
107 bool isKeyboardFocusable() const override; 107 bool isKeyboardFocusable() const override;
108 108
109 void disposeWidgetSoon(Widget*); 109 void disposeWidgetSoon(FrameViewBase*);
110 110
111 private: 111 private:
112 // Intentionally private to prevent redundant checks when the type is 112 // Intentionally private to prevent redundant checks when the type is
113 // already HTMLFrameOwnerElement. 113 // already HTMLFrameOwnerElement.
114 bool isLocal() const final { return true; } 114 bool isLocal() const final { return true; }
115 bool isRemote() const final { return false; } 115 bool isRemote() const final { return false; }
116 116
117 bool isFrameOwnerElement() const final { return true; } 117 bool isFrameOwnerElement() const final { return true; }
118 118
119 virtual ReferrerPolicy referrerPolicyAttribute() { 119 virtual ReferrerPolicy referrerPolicyAttribute() {
120 return ReferrerPolicyDefault; 120 return ReferrerPolicyDefault;
121 } 121 }
122 122
123 Member<Frame> m_contentFrame; 123 Member<Frame> m_contentFrame;
124 Member<Widget> m_widget; 124 Member<FrameViewBase> m_widget;
125 SandboxFlags m_sandboxFlags; 125 SandboxFlags m_sandboxFlags;
126 }; 126 };
127 127
128 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); 128 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement());
129 129
130 class SubframeLoadingDisabler { 130 class SubframeLoadingDisabler {
131 STACK_ALLOCATED(); 131 STACK_ALLOCATED();
132 132
133 public: 133 public:
134 explicit SubframeLoadingDisabler(Node& root) 134 explicit SubframeLoadingDisabler(Node& root)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, 168 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement,
169 FrameOwner, 169 FrameOwner,
170 owner, 170 owner,
171 owner->isLocal(), 171 owner->isLocal(),
172 owner.isLocal()); 172 owner.isLocal());
173 173
174 } // namespace blink 174 } // namespace blink
175 175
176 #endif // HTMLFrameOwnerElement_h 176 #endif // HTMLFrameOwnerElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrameClient.h ('k') | third_party/WebKit/Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698