OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999-2001 Lars Knoll <knoll@kde.org> | 3 * 1999-2001 Lars Knoll <knoll@kde.org> |
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> | 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> |
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> | 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> |
6 * 2000-2001 Dirk Mueller <mueller@kde.org> | 6 * 2000-2001 Dirk Mueller <mueller@kde.org> |
7 * 2000 Stefan Schimanski <1Stein@gmx.de> | 7 * 2000 Stefan Schimanski <1Stein@gmx.de> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
9 * reserved. | 9 * reserved. |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #ifndef Frame_h | 29 #ifndef Frame_h |
30 #define Frame_h | 30 #define Frame_h |
31 | 31 |
32 #include "core/CoreExport.h" | 32 #include "core/CoreExport.h" |
33 #include "core/frame/FrameTypes.h" | 33 #include "core/frame/FrameTypes.h" |
34 #include "core/loader/FrameLoaderTypes.h" | 34 #include "core/loader/FrameLoaderTypes.h" |
35 #include "core/page/FrameTree.h" | 35 #include "core/page/FrameTree.h" |
36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "public/platform/WebFeaturePolicy.h" |
37 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
41 class ChromeClient; | 42 class ChromeClient; |
42 class DOMWindow; | 43 class DOMWindow; |
43 class DOMWrapperWorld; | 44 class DOMWrapperWorld; |
44 class Document; | 45 class Document; |
45 class FrameClient; | 46 class FrameClient; |
46 class FrameHost; | 47 class FrameHost; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 143 |
143 virtual WindowProxyManagerBase* getWindowProxyManager() const = 0; | 144 virtual WindowProxyManagerBase* getWindowProxyManager() const = 0; |
144 | 145 |
145 virtual void didChangeVisibilityState(); | 146 virtual void didChangeVisibilityState(); |
146 | 147 |
147 void setDocumentHasReceivedUserGesture(); | 148 void setDocumentHasReceivedUserGesture(); |
148 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } | 149 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } |
149 | 150 |
150 bool isDetaching() const { return m_isDetaching; } | 151 bool isDetaching() const { return m_isDetaching; } |
151 | 152 |
| 153 // Tests whether the feature-policy controlled feature is enabled by policy in |
| 154 // the given frame. |
| 155 bool isFeatureEnabled(WebFeaturePolicyFeature) const; |
| 156 |
152 protected: | 157 protected: |
153 Frame(FrameClient*, FrameHost*, FrameOwner*); | 158 Frame(FrameClient*, FrameHost*, FrameOwner*); |
154 | 159 |
155 mutable FrameTree m_treeNode; | 160 mutable FrameTree m_treeNode; |
156 | 161 |
157 Member<FrameHost> m_host; | 162 Member<FrameHost> m_host; |
158 Member<FrameOwner> m_owner; | 163 Member<FrameOwner> m_owner; |
159 Member<DOMWindow> m_domWindow; | 164 Member<DOMWindow> m_domWindow; |
160 | 165 |
161 bool m_hasReceivedUserGesture = false; | 166 bool m_hasReceivedUserGesture = false; |
(...skipping 18 matching lines...) Expand all Loading... |
180 return m_treeNode; | 185 return m_treeNode; |
181 } | 186 } |
182 | 187 |
183 // Allow equality comparisons of Frames by reference or pointer, | 188 // Allow equality comparisons of Frames by reference or pointer, |
184 // interchangeably. | 189 // interchangeably. |
185 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame) | 190 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame) |
186 | 191 |
187 } // namespace blink | 192 } // namespace blink |
188 | 193 |
189 #endif // Frame_h | 194 #endif // Frame_h |
OLD | NEW |