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

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

Issue 2910023002: Ensure RemoteViewportIntersection rect persists across frame navigations (Closed)
Patch Set: Created 3 years, 7 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.h
diff --git a/content/browser/frame_host/cross_process_frame_connector.h b/content/browser/frame_host/cross_process_frame_connector.h
index 641a51005299d443a1b1fa5a3043b0bef9048cca..172f5f1dddc89af9a8384b48c464a64c0066c426 100644
--- a/content/browser/frame_host/cross_process_frame_connector.h
+++ b/content/browser/frame_host/cross_process_frame_connector.h
@@ -28,6 +28,7 @@ class Message;
}
namespace content {
+class MockCrossProcessFrameConnector;
ncarter (slow) 2017/05/30 17:51:09 "friend class" doesn't actually require forward de
kenrb 2017/05/30 18:25:10 Done.
class RenderFrameProxyHost;
class RenderWidgetHostViewBase;
class RenderWidgetHostViewChildFrame;
@@ -133,12 +134,18 @@ class CONTENT_EXPORT CrossProcessFrameConnector {
// Returns the view for the top-level frame under the same WebContents.
RenderWidgetHostViewBase* GetRootRenderWidgetHostView();
+ gfx::Rect viewport_intersection() const {
+ return viewport_intersection_rect_;
+ }
+
// Exposed for tests.
RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() {
return GetRootRenderWidgetHostView();
}
private:
+ friend class MockCrossProcessFrameConnector;
+
// Handlers for messages received from the parent frame.
void OnFrameRectChanged(const gfx::Rect& frame_rect);
void OnUpdateViewportIntersection(const gfx::Rect& viewport_intersection);
@@ -157,6 +164,7 @@ class CONTENT_EXPORT CrossProcessFrameConnector {
RenderWidgetHostViewChildFrame* view_;
gfx::Rect child_frame_rect_;
+ gfx::Rect viewport_intersection_rect_;
bool is_scroll_bubbling_;
};

Powered by Google App Engine
This is Rietveld 408576698