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 #include "config.h" | 5 #include "config.h" |
6 #include "core/frame/RemoteFrameView.h" | 6 #include "core/frame/RemoteFrameView.h" |
7 | 7 |
8 #include "core/frame/RemoteFrame.h" | 8 #include "core/frame/RemoteFrame.h" |
9 #include "core/rendering/RenderPart.h" | 9 #include "core/rendering/RenderPart.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 RemoteFrameView::RemoteFrameView(RemoteFrame* remoteFrame) | 13 RemoteFrameView::RemoteFrameView(RemoteFrame* remoteFrame) |
14 : m_remoteFrame(remoteFrame) | 14 : m_remoteFrame(remoteFrame) |
15 { | 15 { |
16 ASSERT(remoteFrame); | 16 ASSERT(remoteFrame); |
17 } | 17 } |
18 | 18 |
19 RemoteFrameView::~RemoteFrameView() | 19 RemoteFrameView::~RemoteFrameView() |
20 { | 20 { |
21 } | 21 } |
22 | 22 |
23 PassRefPtr<RemoteFrameView> RemoteFrameView::create(RemoteFrame* remoteFrame) | 23 PassRefPtrWillBeRawPtr<RemoteFrameView> RemoteFrameView::create(RemoteFrame* rem
oteFrame) |
24 { | 24 { |
25 RefPtr<RemoteFrameView> view = adoptRef(new RemoteFrameView(remoteFrame)); | 25 RefPtrWillBeRawPtr<RemoteFrameView> view = adoptRefWillBeNoop(new RemoteFram
eView(remoteFrame)); |
26 view->show(); | 26 view->show(); |
27 return view.release(); | 27 return view.release(); |
28 } | 28 } |
29 | 29 |
30 void RemoteFrameView::invalidateRect(const IntRect& rect) | 30 void RemoteFrameView::invalidateRect(const IntRect& rect) |
31 { | 31 { |
32 RenderPart* renderer = m_remoteFrame->ownerRenderer(); | 32 RenderPart* renderer = m_remoteFrame->ownerRenderer(); |
33 if (!renderer) | 33 if (!renderer) |
34 return; | 34 return; |
35 | 35 |
(...skipping 13 matching lines...) Expand all Loading... |
49 Widget::setFrameRect(newRect); | 49 Widget::setFrameRect(newRect); |
50 | 50 |
51 frameRectsChanged(); | 51 frameRectsChanged(); |
52 } | 52 } |
53 | 53 |
54 void RemoteFrameView::frameRectsChanged() | 54 void RemoteFrameView::frameRectsChanged() |
55 { | 55 { |
56 // FIXME: Notify embedder via WebLocalFrameClient when that is possible. | 56 // FIXME: Notify embedder via WebLocalFrameClient when that is possible. |
57 } | 57 } |
58 | 58 |
| 59 void RemoteFrameView::trace(Visitor* visitor) |
| 60 { |
| 61 visitor->trace(m_remoteFrame); |
| 62 Widget::trace(visitor); |
| 63 } |
| 64 |
59 } // namespace blink | 65 } // namespace blink |
OLD | NEW |