diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-05-17 10:12:13 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-17 19:47:05 +0200 |
commit | 2d51b8c286400aa5ef3f3872aa0596880885b7f2 (patch) | |
tree | 87624ca2961fcc87bcc9ea1f61d7b8398230356e /Userland/Libraries/LibWebView/ViewImplementation.h | |
parent | 31d7565cf327767c4a986a5c2500798fc6104010 (diff) | |
download | serenity-2d51b8c286400aa5ef3f3872aa0596880885b7f2.zip |
Browser+Ladybird+LibWebView: Virtualize computing content/widget points
This will allow moving some copy-pasted functionality from web view
implementations to the base LibWebView class.
Diffstat (limited to 'Userland/Libraries/LibWebView/ViewImplementation.h')
-rw-r--r-- | Userland/Libraries/LibWebView/ViewImplementation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h index 75ca656d5b..3af0c8f097 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.h +++ b/Userland/Libraries/LibWebView/ViewImplementation.h @@ -136,6 +136,8 @@ public: virtual void notify_server_did_finish_handling_input_event(bool event_was_accepted) = 0; virtual Gfx::IntRect viewport_rect() const = 0; + virtual Gfx::IntPoint to_content_position(Gfx::IntPoint widget_position) const = 0; + virtual Gfx::IntPoint to_widget_position(Gfx::IntPoint content_position) const = 0; protected: static constexpr auto ZOOM_MIN_LEVEL = 0.3f; |