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-06-07 21:18:35 +00:00
|
|
|
index 31fb2a66ac5bed634f3d31f4f93d040293c30c0d..ad42e2d94ab498dd30968e62aebd62e14f8161ab 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-06-07 21:18:35 +00:00
|
|
|
@@ -742,6 +742,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-06-07 21:18:35 +00:00
|
|
|
index 1a7932a580836bae3b92c63aa9bfeb56b250ee61..dc31ac9ef4dc708b44afb806d311e38a4f0597a3 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-06-07 21:18:35 +00:00
|
|
|
@@ -26,10 +26,12 @@
|
|
|
|
#include "components/viz/common/surfaces/scoped_surface_id_allocator.h"
|
|
|
|
#include "components/viz/common/surfaces/surface_id.h"
|
2020-06-01 20:34:34 +00:00
|
|
|
#include "content/browser/renderer_host/display_feature.h"
|
2024-06-07 21:18:35 +00:00
|
|
|
-#include "content/common/content_export.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-01-11 06:33:40 +00:00
|
|
|
#include "content/common/input/input_router_impl.h"
|
2024-06-07 21:18:35 +00:00
|
|
|
#include "content/common/input/render_widget_host_view_input.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-06-07 21:18:35 +00:00
|
|
|
@@ -73,9 +75,11 @@ class DevicePosturePlatformProvider;
|
2018-09-14 18:03:43 +00:00
|
|
|
class MouseWheelPhaseHandler;
|
2018-09-14 05:02:16 +00:00
|
|
|
class RenderWidgetHostImpl;
|
2024-06-07 21:18:35 +00:00
|
|
|
class RenderWidgetHostViewInputObserver;
|
2018-09-14 05:02:16 +00:00
|
|
|
+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;
|
2023-02-03 11:43:42 +00:00
|
|
|
|
2024-06-07 21:18:35 +00:00
|
|
|
@@ -226,6 +230,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(
|
2024-06-07 21:18:35 +00:00
|
|
|
@@ -276,6 +283,11 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
2024-04-15 22:10:32 +00:00
|
|
|
// non-embeddable derived views.
|
|
|
|
virtual RenderWidgetHostViewBase* GetRootView();
|
2018-09-14 05:02:16 +00:00
|
|
|
|
|
|
|
+ virtual RenderWidgetHostViewBase* CreateViewForWidget(
|
|
|
|
+ RenderWidgetHost* render_widget_host,
|
|
|
|
+ RenderWidgetHost* embedder_render_widget_host,
|
|
|
|
+ WebContentsView* web_contents_view);
|
|
|
|
+
|
2024-04-15 22:10:32 +00:00
|
|
|
// Notifies the View that the renderer text selection has changed.
|
|
|
|
virtual void SelectionChanged(const std::u16string& text,
|
|
|
|
size_t offset,
|