Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/IntPoint.h"
16 #include "platform/geometry/IntRect.h"
15 #include "platform/weborigin/SecurityOrigin.h" 17 #include "platform/weborigin/SecurityOrigin.h"
16 #include "platform/weborigin/SecurityPolicy.h" 18 #include "platform/weborigin/SecurityPolicy.h"
17 #include "public/web/WebRemoteFrameClient.h" 19 #include "public/web/WebRemoteFrameClient.h"
18 #include "web/WebInputEventConversion.h" 20 #include "web/WebInputEventConversion.h"
19 #include "web/WebLocalFrameImpl.h" 21 #include "web/WebLocalFrameImpl.h"
20 #include "web/WebRemoteFrameImpl.h" 22 #include "web/WebRemoteFrameImpl.h"
21 #include "wtf/PtrUtil.h" 23 #include "wtf/PtrUtil.h"
22 #include <memory> 24 #include <memory>
23 25
24 namespace blink { 26 namespace blink {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 if (!webEvent || webEvent->type == WebInputEvent::Undefined) 177 if (!webEvent || webEvent->type == WebInputEvent::Undefined)
176 return; 178 return;
177 179
178 m_webFrame->client()->forwardInputEvent(webEvent.get()); 180 m_webFrame->client()->forwardInputEvent(webEvent.get());
179 } 181 }
180 182
181 void RemoteFrameClientImpl::frameRectsChanged(const IntRect& frameRect) { 183 void RemoteFrameClientImpl::frameRectsChanged(const IntRect& frameRect) {
182 m_webFrame->client()->frameRectsChanged(frameRect); 184 m_webFrame->client()->frameRectsChanged(frameRect);
183 } 185 }
184 186
187 void RemoteFrameClientImpl::updateRemoteViewportIntersection(
188 const IntRect& viewportIntersection,
189 const IntPoint& rootOffset) {
190 m_webFrame->client()->updateRemoteViewportIntersection(viewportIntersection,
191 rootOffset);
192 }
193
185 void RemoteFrameClientImpl::advanceFocus(WebFocusType type, 194 void RemoteFrameClientImpl::advanceFocus(WebFocusType type,
186 LocalFrame* source) { 195 LocalFrame* source) {
187 m_webFrame->client()->advanceFocus(type, 196 m_webFrame->client()->advanceFocus(type,
188 WebLocalFrameImpl::fromFrame(source)); 197 WebLocalFrameImpl::fromFrame(source));
189 } 198 }
190 199
191 void RemoteFrameClientImpl::visibilityChanged(bool visible) { 200 void RemoteFrameClientImpl::visibilityChanged(bool visible) {
192 m_webFrame->client()->visibilityChanged(visible); 201 m_webFrame->client()->visibilityChanged(visible);
193 } 202 }
194 203
195 } // namespace blink 204 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698