| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RemoteFrameOwner_h | 5 #ifndef RemoteFrameOwner_h |
| 6 #define RemoteFrameOwner_h | 6 #define RemoteFrameOwner_h |
| 7 | 7 |
| 8 #include "core/frame/FrameOwner.h" | 8 #include "core/frame/FrameOwner.h" |
| 9 #include "platform/scroll/ScrollTypes.h" | 9 #include "platform/scroll/ScrollTypes.h" |
| 10 #include "public/web/WebFrameOwnerProperties.h" | 10 #include "public/web/WebFrameOwnerProperties.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // FrameOwner overrides: | 31 // FrameOwner overrides: |
| 32 Frame* contentFrame() const override { return m_frame.get(); } | 32 Frame* contentFrame() const override { return m_frame.get(); } |
| 33 void setContentFrame(Frame&) override; | 33 void setContentFrame(Frame&) override; |
| 34 void clearContentFrame() override; | 34 void clearContentFrame() override; |
| 35 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; } | 35 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; } |
| 36 void setSandboxFlags(SandboxFlags flags) { m_sandboxFlags = flags; } | 36 void setSandboxFlags(SandboxFlags flags) { m_sandboxFlags = flags; } |
| 37 void dispatchLoad() override; | 37 void dispatchLoad() override; |
| 38 // TODO(dcheng): Implement. | 38 // TODO(dcheng): Implement. |
| 39 bool canRenderFallbackContent() const override { return false; } | 39 bool canRenderFallbackContent() const override { return false; } |
| 40 void renderFallbackContent() override {} | 40 void renderFallbackContent() override {} |
| 41 void setShouldCollapse(bool) override { NOTREACHED(); } |
| 41 | 42 |
| 42 AtomicString browsingContextContainerName() const override { | 43 AtomicString browsingContextContainerName() const override { |
| 43 return m_browsingContextContainerName; | 44 return m_browsingContextContainerName; |
| 44 } | 45 } |
| 45 ScrollbarMode scrollingMode() const override { return m_scrolling; } | 46 ScrollbarMode scrollingMode() const override { return m_scrolling; } |
| 46 int marginWidth() const override { return m_marginWidth; } | 47 int marginWidth() const override { return m_marginWidth; } |
| 47 int marginHeight() const override { return m_marginHeight; } | 48 int marginHeight() const override { return m_marginHeight; } |
| 48 bool allowFullscreen() const override { return m_allowFullscreen; } | 49 bool allowFullscreen() const override { return m_allowFullscreen; } |
| 49 bool allowPaymentRequest() const override { return m_allowPaymentRequest; } | 50 bool allowPaymentRequest() const override { return m_allowPaymentRequest; } |
| 50 AtomicString csp() const override { return m_csp; } | 51 AtomicString csp() const override { return m_csp; } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 96 |
| 96 DEFINE_TYPE_CASTS(RemoteFrameOwner, | 97 DEFINE_TYPE_CASTS(RemoteFrameOwner, |
| 97 FrameOwner, | 98 FrameOwner, |
| 98 owner, | 99 owner, |
| 99 owner->isRemote(), | 100 owner->isRemote(), |
| 100 owner.isRemote()); | 101 owner.isRemote()); |
| 101 | 102 |
| 102 } // namespace blink | 103 } // namespace blink |
| 103 | 104 |
| 104 #endif // RemoteFrameOwner_h | 105 #endif // RemoteFrameOwner_h |
| OLD | NEW |