| 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 21 matching lines...) Expand all Loading... |
| 32 virtual void clearContentFrame() = 0; | 32 virtual void clearContentFrame() = 0; |
| 33 | 33 |
| 34 virtual SandboxFlags getSandboxFlags() const = 0; | 34 virtual SandboxFlags getSandboxFlags() const = 0; |
| 35 virtual void dispatchLoad() = 0; | 35 virtual void dispatchLoad() = 0; |
| 36 | 36 |
| 37 // On load failure, a frame can ask its owner to render fallback content | 37 // On load failure, a frame can ask its owner to render fallback content |
| 38 // which replaces the frame contents. | 38 // which replaces the frame contents. |
| 39 virtual bool canRenderFallbackContent() const = 0; | 39 virtual bool canRenderFallbackContent() const = 0; |
| 40 virtual void renderFallbackContent() = 0; | 40 virtual void renderFallbackContent() = 0; |
| 41 | 41 |
| 42 // Collapses the frame owner, i.e. removes it from the layout of the parent |
| 43 // frame if the owner is an <iframe> element. |
| 44 virtual void setShouldCollapse(bool) {} |
| 45 |
| 42 // Returns the 'name' content attribute value of the browsing context | 46 // Returns the 'name' content attribute value of the browsing context |
| 43 // container. | 47 // container. |
| 44 // https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-conta
iner | 48 // https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-conta
iner |
| 45 virtual AtomicString browsingContextContainerName() const = 0; | 49 virtual AtomicString browsingContextContainerName() const = 0; |
| 46 virtual ScrollbarMode scrollingMode() const = 0; | 50 virtual ScrollbarMode scrollingMode() const = 0; |
| 47 virtual int marginWidth() const = 0; | 51 virtual int marginWidth() const = 0; |
| 48 virtual int marginHeight() const = 0; | 52 virtual int marginHeight() const = 0; |
| 49 virtual bool allowFullscreen() const = 0; | 53 virtual bool allowFullscreen() const = 0; |
| 50 virtual bool allowPaymentRequest() const = 0; | 54 virtual bool allowPaymentRequest() const = 0; |
| 51 virtual AtomicString csp() const = 0; | 55 virtual AtomicString csp() const = 0; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 private: | 97 private: |
| 94 // Intentionally private to prevent redundant checks when the type is | 98 // Intentionally private to prevent redundant checks when the type is |
| 95 // already DummyFrameOwner. | 99 // already DummyFrameOwner. |
| 96 bool isLocal() const override { return false; } | 100 bool isLocal() const override { return false; } |
| 97 bool isRemote() const override { return false; } | 101 bool isRemote() const override { return false; } |
| 98 }; | 102 }; |
| 99 | 103 |
| 100 } // namespace blink | 104 } // namespace blink |
| 101 | 105 |
| 102 #endif // FrameOwner_h | 106 #endif // FrameOwner_h |
| OLD | NEW |