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 "web/RemoteFrameClientImpl.h" | 5 #include "web/RemoteFrameClientImpl.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/events/KeyboardEvent.h" | 8 #include "core/events/KeyboardEvent.h" |
8 #include "core/events/MouseEvent.h" | 9 #include "core/events/MouseEvent.h" |
9 #include "core/events/WheelEvent.h" | 10 #include "core/events/WheelEvent.h" |
10 #include "core/frame/RemoteFrame.h" | 11 #include "core/frame/RemoteFrame.h" |
11 #include "core/frame/RemoteFrameView.h" | 12 #include "core/frame/RemoteFrameView.h" |
12 #include "core/layout/api/LayoutItem.h" | 13 #include "core/layout/api/LayoutItem.h" |
13 #include "core/layout/api/LayoutPartItem.h" | 14 #include "core/layout/api/LayoutPartItem.h" |
14 #include "platform/exported/WrappedResourceRequest.h" | 15 #include "platform/exported/WrappedResourceRequest.h" |
15 #include "platform/geometry/IntRect.h" | 16 #include "platform/geometry/IntRect.h" |
16 #include "platform/weborigin/SecurityOrigin.h" | 17 #include "platform/weborigin/SecurityOrigin.h" |
17 #include "platform/weborigin/SecurityPolicy.h" | 18 #include "platform/weborigin/SecurityPolicy.h" |
| 19 #include "platform/wtf/PtrUtil.h" |
18 #include "public/web/WebRemoteFrameClient.h" | 20 #include "public/web/WebRemoteFrameClient.h" |
19 #include "web/WebInputEventConversion.h" | 21 #include "web/WebInputEventConversion.h" |
20 #include "web/WebLocalFrameImpl.h" | 22 #include "web/WebLocalFrameImpl.h" |
21 #include "web/WebRemoteFrameImpl.h" | 23 #include "web/WebRemoteFrameImpl.h" |
22 #include "wtf/PtrUtil.h" | |
23 #include <memory> | |
24 | 24 |
25 namespace blink { | 25 namespace blink { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Convenience helper for frame tree helpers in FrameClient to reduce the amount | 29 // Convenience helper for frame tree helpers in FrameClient to reduce the amount |
30 // of null-checking boilerplate code. Since the frame tree is maintained in the | 30 // of null-checking boilerplate code. Since the frame tree is maintained in the |
31 // web/ layer, the frame tree helpers often have to deal with null WebFrames: | 31 // web/ layer, the frame tree helpers often have to deal with null WebFrames: |
32 // for example, a frame with no parent will return null for WebFrame::parent(). | 32 // for example, a frame with no parent will return null for WebFrame::parent(). |
33 // TODO(dcheng): Remove duplication between LocalFrameClientImpl and | 33 // TODO(dcheng): Remove duplication between LocalFrameClientImpl and |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 LocalFrame* source) { | 148 LocalFrame* source) { |
149 m_webFrame->client()->advanceFocus(type, | 149 m_webFrame->client()->advanceFocus(type, |
150 WebLocalFrameImpl::fromFrame(source)); | 150 WebLocalFrameImpl::fromFrame(source)); |
151 } | 151 } |
152 | 152 |
153 void RemoteFrameClientImpl::visibilityChanged(bool visible) { | 153 void RemoteFrameClientImpl::visibilityChanged(bool visible) { |
154 m_webFrame->client()->visibilityChanged(visible); | 154 m_webFrame->client()->visibilityChanged(visible); |
155 } | 155 } |
156 | 156 |
157 } // namespace blink | 157 } // namespace blink |
OLD | NEW |