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 "core/events/KeyboardEvent.h" | 7 #include "core/events/KeyboardEvent.h" |
8 #include "core/events/MouseEvent.h" | 8 #include "core/events/MouseEvent.h" |
9 #include "core/events/WheelEvent.h" | 9 #include "core/events/WheelEvent.h" |
10 #include "core/frame/RemoteFrame.h" | 10 #include "core/frame/RemoteFrame.h" |
11 #include "core/frame/RemoteFrameView.h" | 11 #include "core/frame/RemoteFrameView.h" |
12 #include "core/layout/LayoutPart.h" | 12 #include "core/layout/LayoutPart.h" |
13 #include "core/layout/api/LayoutItem.h" | 13 #include "core/layout/api/LayoutItem.h" |
14 #include "platform/exported/WrappedResourceRequest.h" | 14 #include "platform/exported/WrappedResourceRequest.h" |
| 15 #include "platform/geometry/IntRect.h" |
15 #include "platform/weborigin/SecurityOrigin.h" | 16 #include "platform/weborigin/SecurityOrigin.h" |
16 #include "platform/weborigin/SecurityPolicy.h" | 17 #include "platform/weborigin/SecurityPolicy.h" |
17 #include "public/web/WebRemoteFrameClient.h" | 18 #include "public/web/WebRemoteFrameClient.h" |
18 #include "web/WebInputEventConversion.h" | 19 #include "web/WebInputEventConversion.h" |
19 #include "web/WebLocalFrameImpl.h" | 20 #include "web/WebLocalFrameImpl.h" |
20 #include "web/WebRemoteFrameImpl.h" | 21 #include "web/WebRemoteFrameImpl.h" |
21 #include "wtf/PtrUtil.h" | 22 #include "wtf/PtrUtil.h" |
22 #include <memory> | 23 #include <memory> |
23 | 24 |
24 namespace blink { | 25 namespace blink { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 if (!webEvent || webEvent->type == WebInputEvent::Undefined) | 176 if (!webEvent || webEvent->type == WebInputEvent::Undefined) |
176 return; | 177 return; |
177 | 178 |
178 m_webFrame->client()->forwardInputEvent(webEvent.get()); | 179 m_webFrame->client()->forwardInputEvent(webEvent.get()); |
179 } | 180 } |
180 | 181 |
181 void RemoteFrameClientImpl::frameRectsChanged(const IntRect& frameRect) { | 182 void RemoteFrameClientImpl::frameRectsChanged(const IntRect& frameRect) { |
182 m_webFrame->client()->frameRectsChanged(frameRect); | 183 m_webFrame->client()->frameRectsChanged(frameRect); |
183 } | 184 } |
184 | 185 |
| 186 void RemoteFrameClientImpl::updateRemoteViewportIntersection( |
| 187 const IntRect& viewportIntersection) { |
| 188 m_webFrame->client()->updateRemoteViewportIntersection(viewportIntersection); |
| 189 } |
| 190 |
185 void RemoteFrameClientImpl::advanceFocus(WebFocusType type, | 191 void RemoteFrameClientImpl::advanceFocus(WebFocusType type, |
186 LocalFrame* source) { | 192 LocalFrame* source) { |
187 m_webFrame->client()->advanceFocus(type, | 193 m_webFrame->client()->advanceFocus(type, |
188 WebLocalFrameImpl::fromFrame(source)); | 194 WebLocalFrameImpl::fromFrame(source)); |
189 } | 195 } |
190 | 196 |
191 void RemoteFrameClientImpl::visibilityChanged(bool visible) { | 197 void RemoteFrameClientImpl::visibilityChanged(bool visible) { |
192 m_webFrame->client()->visibilityChanged(visible); | 198 m_webFrame->client()->visibilityChanged(visible); |
193 } | 199 } |
194 | 200 |
195 void RemoteFrameClientImpl::setHasReceivedUserGesture() { | 201 void RemoteFrameClientImpl::setHasReceivedUserGesture() { |
196 m_webFrame->client()->setHasReceivedUserGesture(); | 202 m_webFrame->client()->setHasReceivedUserGesture(); |
197 } | 203 } |
198 | 204 |
199 } // namespace blink | 205 } // namespace blink |
OLD | NEW |