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
|
|
|
|
|
|
|
|
|
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
|
2019-01-12 01:00:43 +00:00
|
|
|
index e155153ec1eec9d28242e9ab95c9d75a0d3f40d7..fab1bcd2d8176cdd7163e329552a0a848c601290 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
|
2019-01-12 01:00:43 +00:00
|
|
|
@@ -656,6 +656,15 @@ viz::FrameSinkId RenderWidgetHostViewBase::FrameSinkIdAtPoint(
|
2018-09-14 05:02:16 +00:00
|
|
|
return frame_sink_id.is_valid() ? frame_sink_id : GetFrameSinkId();
|
|
|
|
}
|
|
|
|
|
|
|
|
+RenderWidgetHostViewBase* RenderWidgetHostViewBase::CreateViewForWidget(
|
|
|
|
+ RenderWidgetHost* render_widget_host,
|
|
|
|
+ RenderWidgetHost* embedder_render_widget_host,
|
|
|
|
+ WebContentsView* web_contents_view) {
|
|
|
|
+ return web_contents_view->CreateViewForWidget(
|
|
|
|
+ render_widget_host,
|
|
|
|
+ !!embedder_render_widget_host);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
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
|
2019-01-12 01:00:43 +00:00
|
|
|
index c48b0aa86d8acea34dfece9212da4e7b11ffdb64..115b5647dfc13eb14e4d560c1fb71b926b5af829 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
|
2018-09-14 18:03:43 +00:00
|
|
|
@@ -22,8 +22,10 @@
|
2018-09-14 05:02:16 +00:00
|
|
|
#include "components/viz/common/surfaces/surface_id.h"
|
2018-09-14 18:03:43 +00:00
|
|
|
#include "components/viz/host/hit_test/hit_test_query.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"
|
|
|
|
#include "content/public/common/input_event_ack_state.h"
|
|
|
|
#include "content/public/common/screen_info.h"
|
2018-10-24 23:25:48 +00:00
|
|
|
@@ -83,10 +85,12 @@ 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 WebContentsAccessibility;
|
|
|
|
+class WebContentsView;
|
|
|
|
class WebCursor;
|
2019-01-12 01:00:43 +00:00
|
|
|
class DelegatedFrameHost;
|
2018-09-14 05:02:16 +00:00
|
|
|
struct TextInputState;
|
2019-01-12 01:00:43 +00:00
|
|
|
@@ -145,6 +149,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
2018-09-14 05:02:16 +00:00
|
|
|
TouchSelectionControllerClientManager*
|
|
|
|
GetTouchSelectionControllerClientManager() override;
|
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(
|
2019-01-12 01:00:43 +00:00
|
|
|
@@ -369,6 +376,11 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
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
|