diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/exported/web_page_popup_impl.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/exported/web_page_popup_impl.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/chromium/third_party/blink/renderer/core/exported/web_page_popup_impl.h b/chromium/third_party/blink/renderer/core/exported/web_page_popup_impl.h index 753d0ce2d46..675700ff93e 100644 --- a/chromium/third_party/blink/renderer/core/exported/web_page_popup_impl.h +++ b/chromium/third_party/blink/renderer/core/exported/web_page_popup_impl.h @@ -54,6 +54,7 @@ class Layer; namespace blink { class Element; +class Node; class Page; class PagePopupChromeClient; class PagePopupClient; @@ -100,13 +101,10 @@ class CORE_EXPORT WebPagePopupImpl final : public WebPagePopup, return other && popup_client_ == other->popup_client_; } - WebWidgetClient* WidgetClient() const { return web_page_popup_client_; } - LocalDOMWindow* Window(); // WebPagePopup implementation. WebDocument GetDocument() override; - WebPagePopupClient* GetClientForTesting() const override; void InitializeForTesting(WebView* view) override; // PagePopup implementation. @@ -116,6 +114,9 @@ class CORE_EXPORT WebPagePopupImpl final : public WebPagePopup, // PageWidgetEventHandler implementation. WebInputEventResult HandleKeyEvent(const WebKeyboardEvent&) override; + // Return the LayerTreeHost backing this popup widget. + cc::LayerTreeHost* LayerTreeHostForTesting(); + private: // WidgetBaseClient overrides: void BeginMainFrame(base::TimeTicks last_frame_time) override; @@ -151,16 +152,14 @@ class CORE_EXPORT WebPagePopupImpl final : public WebPagePopup, void UpdateLifecycle(WebLifecycleUpdate requested_update, DocumentUpdateReason reason) override; void Resize(const gfx::Size&) override; - void Close( - scoped_refptr<base::SingleThreadTaskRunner> cleanup_runner) override; + void Close() override; WebInputEventResult HandleInputEvent(const WebCoalescedInputEvent&) override; void SetFocus(bool) override; bool HasFocus() override; WebHitTestResult HitTestResultAt(const gfx::PointF&) override { return {}; } - cc::LayerTreeHost* InitializeCompositing( - scheduler::WebThreadScheduler* main_thread_scheduler, + void InitializeCompositing( + scheduler::WebAgentGroupScheduler& agent_group_scheduler, cc::TaskGraphRunner* task_graph_runner, - bool for_child_local_root_frame, const ScreenInfo& screen_info, std::unique_ptr<cc::UkmRecorderFactory> ukm_recorder_factory, const cc::LayerTreeSettings* settings) override; @@ -208,7 +207,6 @@ class CORE_EXPORT WebPagePopupImpl final : public WebPagePopup, void SetWindowRect(const IntRect&) override; WebPagePopupImpl( - WebPagePopupClient*, CrossVariantMojoAssociatedRemote< mojom::blink::PopupWidgetHostInterfaceBase> popup_widget_host, CrossVariantMojoAssociatedRemote<mojom::blink::WidgetHostInterfaceBase> @@ -232,8 +230,8 @@ class CORE_EXPORT WebPagePopupImpl final : public WebPagePopup, void DidShowPopup(); void DidSetBounds(); - WebPagePopupClient* web_page_popup_client_; - WebViewImpl* web_view_ = nullptr; + // This is the WebView that opened the popup. + WebViewImpl* opener_web_view_ = nullptr; // WebPagePopupImpl wraps its own Page that renders the content in the popup. // This member is non-null between the call to Initialize() and the call to // ClosePopup(). If page_ is non-null, it is guaranteed to have an attached |