| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef FrameOwner_h | 5 #ifndef FrameOwner_h |
| 6 #define FrameOwner_h | 6 #define FrameOwner_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/SandboxFlags.h" | 9 #include "core/dom/SandboxFlags.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual void clearContentFrame() = 0; | 31 virtual void clearContentFrame() = 0; |
| 32 | 32 |
| 33 virtual SandboxFlags getSandboxFlags() const = 0; | 33 virtual SandboxFlags getSandboxFlags() const = 0; |
| 34 virtual void dispatchLoad() = 0; | 34 virtual void dispatchLoad() = 0; |
| 35 | 35 |
| 36 // On load failure, a frame can ask its owner to render fallback content | 36 // On load failure, a frame can ask its owner to render fallback content |
| 37 // which replaces the frame contents. | 37 // which replaces the frame contents. |
| 38 virtual bool canRenderFallbackContent() const = 0; | 38 virtual bool canRenderFallbackContent() const = 0; |
| 39 virtual void renderFallbackContent() = 0; | 39 virtual void renderFallbackContent() = 0; |
| 40 | 40 |
| 41 // Collapses the frame owner, i.e. removes it from the layout of the parent |
| 42 // frame if the owner is an <iframe> element. |
| 43 virtual void setShouldCollapse(bool) {} |
| 44 |
| 41 virtual ScrollbarMode scrollingMode() const = 0; | 45 virtual ScrollbarMode scrollingMode() const = 0; |
| 42 virtual int marginWidth() const = 0; | 46 virtual int marginWidth() const = 0; |
| 43 virtual int marginHeight() const = 0; | 47 virtual int marginHeight() const = 0; |
| 44 virtual bool allowFullscreen() const = 0; | 48 virtual bool allowFullscreen() const = 0; |
| 45 virtual bool allowPaymentRequest() const = 0; | 49 virtual bool allowPaymentRequest() const = 0; |
| 46 virtual AtomicString csp() const = 0; | 50 virtual AtomicString csp() const = 0; |
| 47 virtual const WebVector<WebPermissionType>& delegatedPermissions() const = 0; | 51 virtual const WebVector<WebPermissionType>& delegatedPermissions() const = 0; |
| 48 }; | 52 }; |
| 49 | 53 |
| 50 class CORE_EXPORT DummyFrameOwner | 54 class CORE_EXPORT DummyFrameOwner |
| (...skipping 27 matching lines...) Expand all Loading... |
| 78 private: | 82 private: |
| 79 // Intentionally private to prevent redundant checks when the type is | 83 // Intentionally private to prevent redundant checks when the type is |
| 80 // already DummyFrameOwner. | 84 // already DummyFrameOwner. |
| 81 bool isLocal() const override { return false; } | 85 bool isLocal() const override { return false; } |
| 82 bool isRemote() const override { return false; } | 86 bool isRemote() const override { return false; } |
| 83 }; | 87 }; |
| 84 | 88 |
| 85 } // namespace blink | 89 } // namespace blink |
| 86 | 90 |
| 87 #endif // FrameOwner_h | 91 #endif // FrameOwner_h |
| OLD | NEW |