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 #include "config.h" | 5 #include "config.h" |
6 #include "web/RemoteBridgeFrameOwner.h" | 6 #include "web/RemoteBridgeFrameOwner.h" |
7 | 7 |
8 #include "public/web/WebFrameClient.h" | 8 #include "public/web/WebFrameClient.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 RemoteBridgeFrameOwner::RemoteBridgeFrameOwner(PassRefPtrWillBeRawPtr<WebLocalFr
ameImpl> frame, SandboxFlags flags) | 12 RemoteBridgeFrameOwner::RemoteBridgeFrameOwner(PassRefPtrWillBeRawPtr<WebLocalFr
ameImpl> frame, SandboxFlags flags, const WebFrameOwnerProperties& frameOwnerPro
perties) |
13 : m_frame(frame) | 13 : m_frame(frame) |
14 , m_sandboxFlags(flags) | 14 , m_sandboxFlags(flags) |
| 15 , m_scrolling(static_cast<ScrollbarMode>(frameOwnerProperties.scrollingMode)
) |
| 16 , m_marginWidth(frameOwnerProperties.marginWidth) |
| 17 , m_marginHeight(frameOwnerProperties.marginHeight) |
15 { | 18 { |
16 } | 19 } |
17 | 20 |
18 DEFINE_TRACE(RemoteBridgeFrameOwner) | 21 DEFINE_TRACE(RemoteBridgeFrameOwner) |
19 { | 22 { |
20 visitor->trace(m_frame); | 23 visitor->trace(m_frame); |
21 FrameOwner::trace(visitor); | 24 FrameOwner::trace(visitor); |
22 } | 25 } |
23 | 26 |
| 27 void RemoteBridgeFrameOwner::setScrollingMode(WebFrameOwnerProperties::Scrolling
Mode mode) |
| 28 { |
| 29 m_scrolling = static_cast<ScrollbarMode>(mode); |
| 30 } |
| 31 |
24 void RemoteBridgeFrameOwner::dispatchLoad() | 32 void RemoteBridgeFrameOwner::dispatchLoad() |
25 { | 33 { |
26 if (m_frame->client()) | 34 if (m_frame->client()) |
27 m_frame->client()->dispatchLoad(); | 35 m_frame->client()->dispatchLoad(); |
28 } | 36 } |
29 | 37 |
30 } // namespace blink | 38 } // namespace blink |
OLD | NEW |