2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-09-21 00:30:26 +00:00
|
|
|
From: Anonymous <anonymous@electronjs.org>
|
|
|
|
Date: Thu, 20 Sep 2018 17:46:21 -0700
|
|
|
|
Subject: render_widget_host_view_base.patch
|
|
|
|
|
2019-12-13 17:18:45 +00:00
|
|
|
... something to do with OSR? and maybe <webview> as well? terrifying.
|
2018-09-21 00:30:26 +00:00
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc
|
2024-08-19 18:52:53 +00:00
|
|
|
index 540ce029150ef7547335cf27041251961a70730b..b8213ddb65019f099e703596f38ec3143988bfa3 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
|
|
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
|
2024-07-29 13:37:35 +00:00
|
|
|
@@ -779,6 +779,13 @@ bool RenderWidgetHostViewBase::ScreenRectIsUnstableForIOv2For(
|
2019-07-09 01:00:24 +00:00
|
|
|
return false;
|
2018-09-14 05:02:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+RenderWidgetHostViewBase* RenderWidgetHostViewBase::CreateViewForWidget(
|
|
|
|
+ RenderWidgetHost* render_widget_host,
|
|
|
|
+ RenderWidgetHost* embedder_render_widget_host,
|
|
|
|
+ WebContentsView* web_contents_view) {
|
2019-12-11 00:22:35 +00:00
|
|
|
+ return web_contents_view->CreateViewForWidget(render_widget_host);
|
2018-09-14 05:02:16 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
void RenderWidgetHostViewBase::ProcessMouseEvent(
|
|
|
|
const blink::WebMouseEvent& event,
|
|
|
|
const ui::LatencyInfo& latency) {
|
|
|
|
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
|
2024-08-14 20:47:37 +00:00
|
|
|
index 177587d0a67ad62fd6e7b515f62d0551fce317f7..3ddfe7c65af7ffa35b820cb5ccdb7d16cce30e20 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/content/browser/renderer_host/render_widget_host_view_base.h
|
|
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
|
2024-07-03 15:15:35 +00:00
|
|
|
@@ -29,8 +29,11 @@
|
|
|
|
#include "components/viz/common/surfaces/scoped_surface_id_allocator.h"
|
2024-06-07 21:18:35 +00:00
|
|
|
#include "components/viz/common/surfaces/surface_id.h"
|
2020-06-01 20:34:34 +00:00
|
|
|
#include "content/browser/renderer_host/display_feature.h"
|
2023-01-06 02:35:34 +00:00
|
|
|
+#include "content/browser/renderer_host/visible_time_request_trigger.h"
|
2018-09-14 05:02:16 +00:00
|
|
|
+#include "content/browser/web_contents/web_contents_view.h"
|
2024-07-03 15:15:35 +00:00
|
|
|
#include "content/common/content_export.h"
|
2018-09-14 05:02:16 +00:00
|
|
|
#include "content/public/browser/render_frame_metadata_provider.h"
|
|
|
|
+#include "content/public/browser/render_widget_host.h"
|
|
|
|
#include "content/public/browser/render_widget_host_view.h"
|
2021-11-24 08:45:59 +00:00
|
|
|
#include "content/public/common/page_visibility_state.h"
|
2020-04-24 01:55:17 +00:00
|
|
|
#include "content/public/common/widget_type.h"
|
2024-07-03 15:15:35 +00:00
|
|
|
@@ -76,9 +79,11 @@ namespace content {
|
2024-07-02 07:51:33 +00:00
|
|
|
class DevicePosturePlatformProvider;
|
2018-09-14 18:03:43 +00:00
|
|
|
class MouseWheelPhaseHandler;
|
2018-09-14 05:02:16 +00:00
|
|
|
class RenderWidgetHostImpl;
|
|
|
|
+class RenderWidgetHostViewGuest;
|
2024-03-15 18:03:42 +00:00
|
|
|
class ScopedViewTransitionResources;
|
2018-09-14 05:02:16 +00:00
|
|
|
class TextInputManager;
|
|
|
|
class TouchSelectionControllerClientManager;
|
|
|
|
+class WebContentsView;
|
2020-12-14 18:57:36 +00:00
|
|
|
class WebContentsAccessibility;
|
2019-01-12 01:00:43 +00:00
|
|
|
class DelegatedFrameHost;
|
2024-07-02 07:51:33 +00:00
|
|
|
class SyntheticGestureTarget;
|
2024-07-03 15:15:35 +00:00
|
|
|
@@ -155,6 +160,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
|
|
|
void DidOverscroll(const ui::DidOverscrollParams& params) override {}
|
|
|
|
void DidStopFlinging() override {}
|
|
|
|
RenderWidgetHostViewBase* GetRootView() override;
|
|
|
|
+ virtual RenderWidgetHostViewBase* CreateViewForWidget(
|
|
|
|
+ RenderWidgetHost* render_widget_host,
|
|
|
|
+ RenderWidgetHost* embedder_render_widget_host,
|
|
|
|
+ WebContentsView* web_contents_view);
|
|
|
|
viz::FrameSinkId GetRootFrameSinkId() override;
|
|
|
|
void NotifyHitTestRegionUpdated(
|
|
|
|
const viz::AggregatedHitTestRegion& region) override {}
|
2024-07-29 13:37:35 +00:00
|
|
|
@@ -235,6 +244,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
2021-08-24 00:52:17 +00:00
|
|
|
const gfx::Rect& keyboard_rect) override {}
|
2021-10-06 02:21:00 +00:00
|
|
|
bool IsHTMLFormPopup() const override;
|
2021-05-19 23:15:47 +00:00
|
|
|
|
|
|
|
+ virtual void InitAsGuest(RenderWidgetHostView* parent_host_view,
|
|
|
|
+ RenderWidgetHostViewGuest* guest_view) {}
|
|
|
|
+
|
|
|
|
// This only needs to be overridden by RenderWidgetHostViewBase subclasses
|
|
|
|
// that handle content embedded within other RenderWidgetHostViews.
|
|
|
|
gfx::PointF TransformPointToRootCoordSpaceF(
|