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/api/LayoutItem.h" | 12 #include "core/layout/api/LayoutItem.h" |
13 #include "core/layout/api/LayoutPartItem.h" | 13 #include "core/layout/api/LayoutPartItem.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 if (!webEvent || webEvent->type == WebInputEvent::Undefined) | 168 if (!webEvent || webEvent->type == WebInputEvent::Undefined) |
168 return; | 169 return; |
169 | 170 |
170 m_webFrame->client()->forwardInputEvent(webEvent.get()); | 171 m_webFrame->client()->forwardInputEvent(webEvent.get()); |
171 } | 172 } |
172 | 173 |
173 void RemoteFrameClientImpl::frameRectsChanged(const IntRect& frameRect) { | 174 void RemoteFrameClientImpl::frameRectsChanged(const IntRect& frameRect) { |
174 m_webFrame->client()->frameRectsChanged(frameRect); | 175 m_webFrame->client()->frameRectsChanged(frameRect); |
175 } | 176 } |
176 | 177 |
| 178 void RemoteFrameClientImpl::updateRemoteViewportIntersection( |
| 179 const IntRect& viewportIntersection) { |
| 180 m_webFrame->client()->updateRemoteViewportIntersection(viewportIntersection); |
| 181 } |
| 182 |
177 void RemoteFrameClientImpl::advanceFocus(WebFocusType type, | 183 void RemoteFrameClientImpl::advanceFocus(WebFocusType type, |
178 LocalFrame* source) { | 184 LocalFrame* source) { |
179 m_webFrame->client()->advanceFocus(type, | 185 m_webFrame->client()->advanceFocus(type, |
180 WebLocalFrameImpl::fromFrame(source)); | 186 WebLocalFrameImpl::fromFrame(source)); |
181 } | 187 } |
182 | 188 |
183 void RemoteFrameClientImpl::visibilityChanged(bool visible) { | 189 void RemoteFrameClientImpl::visibilityChanged(bool visible) { |
184 m_webFrame->client()->visibilityChanged(visible); | 190 m_webFrame->client()->visibilityChanged(visible); |
185 } | 191 } |
186 | 192 |
187 void RemoteFrameClientImpl::setHasReceivedUserGesture() { | 193 void RemoteFrameClientImpl::setHasReceivedUserGesture() { |
188 m_webFrame->client()->setHasReceivedUserGesture(); | 194 m_webFrame->client()->setHasReceivedUserGesture(); |
189 } | 195 } |
190 | 196 |
191 } // namespace blink | 197 } // namespace blink |
OLD | NEW |