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

Unified Diff: content/browser/frame_host/cross_process_frame_connector.cc

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: dcheng comments addressed Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/cross_process_frame_connector.cc
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc
index d6fd0f756c171a7556cf56081cb417660731d464..f1eb10f819d3e1bc3d96e2ae7b52b68c606c477d 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -42,6 +42,8 @@ bool CrossProcessFrameConnector::OnMessageReceived(const IPC::Message& msg) {
IPC_BEGIN_MESSAGE_MAP(CrossProcessFrameConnector, msg)
IPC_MESSAGE_HANDLER(FrameHostMsg_ForwardInputEvent, OnForwardInputEvent)
IPC_MESSAGE_HANDLER(FrameHostMsg_FrameRectChanged, OnFrameRectChanged)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateViewportIntersection,
+ OnUpdateViewportIntersection)
IPC_MESSAGE_HANDLER(FrameHostMsg_VisibilityChanged, OnVisibilityChanged)
IPC_MESSAGE_HANDLER(FrameHostMsg_SatisfySequence, OnSatisfySequence)
IPC_MESSAGE_HANDLER(FrameHostMsg_RequireSequence, OnRequireSequence)
@@ -297,6 +299,12 @@ void CrossProcessFrameConnector::OnFrameRectChanged(
SetRect(frame_rect);
}
+void CrossProcessFrameConnector::OnUpdateViewportIntersection(
+ const gfx::Rect& viewport_intersection) {
+ if (view_)
+ view_->UpdateViewportIntersection(viewport_intersection);
+}
+
void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) {
if (!view_)
return;

Powered by Google App Engine
This is Rietveld 408576698