2018-10-24 21:24:11 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-09-21 03:30:26 +03: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 08:02:16 +03: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-10-18 22:57:34 +03:00
|
|
|
index 50aad3c8d627ab4e65c1438266c2c1c68113dccf..4a708fdfacfb8fcc2ad07d5f10b475e2169b62ee 100644
|
2018-09-14 08:02:16 +03:00
|
|
|
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
|
|
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
|
2019-09-18 22:58:00 +03:00
|
|
|
@@ -631,6 +631,15 @@ bool RenderWidgetHostViewBase::ScreenRectIsUnstableFor(
|
2019-07-09 04:00:24 +03:00
|
|
|
return false;
|
2018-09-14 08:02:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
+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-10-18 22:57:34 +03:00
|
|
|
index add7df1a4432d8a6e4ebec892ab2708ba6650af5..d681d70e8ca9b2c228295336484d9b68240ce26b 100644
|
2018-09-14 08:02:16 +03:00
|
|
|
--- a/content/browser/renderer_host/render_widget_host_view_base.h
|
|
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
|
2019-05-21 20:05:21 +03:00
|
|
|
@@ -24,9 +24,11 @@
|
2018-09-14 08:02:16 +03:00
|
|
|
#include "components/viz/common/surfaces/surface_id.h"
|
2018-09-14 21:03:43 +03:00
|
|
|
#include "components/viz/host/hit_test/hit_test_query.h"
|
2018-09-14 08:02:16 +03: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"
|
2019-05-21 20:05:21 +03:00
|
|
|
#include "content/common/tab_switch_time_recorder.h"
|
2018-09-14 08:02:16 +03: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"
|
|
|
|
#include "content/public/common/input_event_ack_state.h"
|
|
|
|
#include "content/public/common/screen_info.h"
|
2019-10-18 22:57:34 +03:00
|
|
|
@@ -72,9 +74,11 @@ class CursorManager;
|
2018-09-14 21:03:43 +03:00
|
|
|
class MouseWheelPhaseHandler;
|
2018-09-14 08:02:16 +03:00
|
|
|
class RenderWidgetHostImpl;
|
|
|
|
class RenderWidgetHostViewBaseObserver;
|
|
|
|
+class RenderWidgetHostViewGuest;
|
|
|
|
class SyntheticGestureTarget;
|
|
|
|
class TextInputManager;
|
|
|
|
class TouchSelectionControllerClientManager;
|
|
|
|
+class WebContentsView;
|
|
|
|
class WebCursor;
|
2019-01-12 04:00:43 +03:00
|
|
|
class DelegatedFrameHost;
|
2018-09-14 08:02:16 +03:00
|
|
|
struct TextInputState;
|
2019-10-18 22:57:34 +03:00
|
|
|
@@ -133,6 +137,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
2019-05-21 20:05:21 +03:00
|
|
|
bool destination_is_loaded,
|
|
|
|
bool destination_is_frozen) final;
|
2018-09-14 21:03:43 +03:00
|
|
|
|
2018-09-14 08:02:16 +03:00
|
|
|
+ virtual void InitAsGuest(RenderWidgetHostView* parent_host_view,
|
|
|
|
+ RenderWidgetHostViewGuest* guest_view) {}
|
2018-09-14 21:03:43 +03:00
|
|
|
+
|
2018-09-14 08:02:16 +03:00
|
|
|
// This only needs to be overridden by RenderWidgetHostViewBase subclasses
|
|
|
|
// that handle content embedded within other RenderWidgetHostViews.
|
2018-09-14 21:03:43 +03:00
|
|
|
gfx::PointF TransformPointToRootCoordSpaceF(
|
2019-10-18 22:57:34 +03:00
|
|
|
@@ -350,6 +357,11 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
2018-09-14 08:02:16 +03: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
|