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
|
2021-04-27 21:27:34 +00:00
|
|
|
index 76555719db36ec4b20a66868f623307e2342bf7d..ccf431485388ea8bb7f43c3f40c1b0b80970a6a0 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
|
2021-04-27 21:27:34 +00:00
|
|
|
@@ -624,6 +624,13 @@ bool RenderWidgetHostViewBase::ScreenRectIsUnstableFor(
|
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
|
2021-04-27 21:27:34 +00:00
|
|
|
index 972a7ad3edf12481ec60f5bfd3b077d5eba5750b..9a54b3d1fcb146d5ed4f1d263352bd228a56d378 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
|
2021-03-16 14:01:00 +00:00
|
|
|
@@ -25,8 +25,10 @@
|
2018-09-14 18:03:43 +00:00
|
|
|
#include "components/viz/host/hit_test/hit_test_query.h"
|
2020-06-01 20:34:34 +00:00
|
|
|
#include "content/browser/renderer_host/display_feature.h"
|
2018-09-14 05:02:16 +00:00
|
|
|
#include "content/browser/renderer_host/event_with_latency_info.h"
|
|
|
|
+#include "content/browser/web_contents/web_contents_view.h"
|
|
|
|
#include "content/common/content_export.h"
|
|
|
|
#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-03-04 17:27:05 +00:00
|
|
|
#include "content/public/browser/visibility.h"
|
2020-04-24 01:55:17 +00:00
|
|
|
#include "content/public/common/widget_type.h"
|
2021-03-16 14:01:00 +00:00
|
|
|
@@ -65,9 +67,11 @@ class CursorManager;
|
2018-09-14 18:03:43 +00:00
|
|
|
class MouseWheelPhaseHandler;
|
2018-09-14 05:02:16 +00:00
|
|
|
class RenderWidgetHostImpl;
|
|
|
|
class RenderWidgetHostViewBaseObserver;
|
|
|
|
+class RenderWidgetHostViewGuest;
|
|
|
|
class SyntheticGestureTarget;
|
|
|
|
class TextInputManager;
|
|
|
|
class TouchSelectionControllerClientManager;
|
|
|
|
+class WebContentsView;
|
|
|
|
class WebCursor;
|
2020-12-14 18:57:36 +00:00
|
|
|
class WebContentsAccessibility;
|
2019-01-12 01:00:43 +00:00
|
|
|
class DelegatedFrameHost;
|
2021-04-27 21:27:34 +00:00
|
|
|
@@ -148,6 +152,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView {
|
2020-03-03 21:35:05 +00:00
|
|
|
bool show_reason_unoccluded,
|
|
|
|
bool show_reason_bfcache_restore) final;
|
2018-09-14 18:03:43 +00:00
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
+ virtual void InitAsGuest(RenderWidgetHostView* parent_host_view,
|
|
|
|
+ RenderWidgetHostViewGuest* guest_view) {}
|
2018-09-14 18:03:43 +00:00
|
|
|
+
|
2018-09-14 05:02:16 +00:00
|
|
|
// This only needs to be overridden by RenderWidgetHostViewBase subclasses
|
|
|
|
// that handle content embedded within other RenderWidgetHostViews.
|
2018-09-14 18:03:43 +00:00
|
|
|
gfx::PointF TransformPointToRootCoordSpaceF(
|
2021-04-27 21:27:34 +00:00
|
|
|
@@ -307,6 +314,11 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView {
|
2018-09-14 05:02:16 +00:00
|
|
|
virtual void ProcessGestureEvent(const blink::WebGestureEvent& event,
|
|
|
|
const ui::LatencyInfo& latency);
|
|
|
|
|
|
|
|
+ virtual RenderWidgetHostViewBase* CreateViewForWidget(
|
|
|
|
+ RenderWidgetHost* render_widget_host,
|
|
|
|
+ RenderWidgetHost* embedder_render_widget_host,
|
|
|
|
+ WebContentsView* web_contents_view);
|
|
|
|
+
|
|
|
|
// Transform a point that is in the coordinate space of a Surface that is
|
|
|
|
// embedded within the RenderWidgetHostViewBase's Surface to the
|
|
|
|
// coordinate space of an embedding, or embedded, Surface. Typically this
|