diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 006bf7e83e..c30ba3bc4d 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -1043,13 +1043,3 @@ void WebContentView::notify_server_did_get_accessibility_tree(DeprecatedString c { dbgln("TODO: support accessibility tree in Ladybird"); } - -DeprecatedString WebContentView::selected_text() -{ - return client().get_selected_text(); -} - -void WebContentView::select_all() -{ - client().async_select_all(); -} diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h index 8a35c7bc57..ee9c8b73ed 100644 --- a/Ladybird/WebContentView.h +++ b/Ladybird/WebContentView.h @@ -97,9 +97,6 @@ public: void set_preferred_color_scheme(Web::CSS::PreferredColorScheme); - DeprecatedString selected_text(); - void select_all(); - virtual void notify_server_did_layout(Badge, Gfx::IntSize content_size) override; virtual void notify_server_did_paint(Badge, i32 bitmap_id) override; virtual void notify_server_did_invalidate_content_rect(Badge, Gfx::IntRect const&) override; diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp index 1b0ff1a1b6..2ea58fa4f4 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp @@ -552,16 +552,6 @@ void OutOfProcessWebView::js_console_request_messages(i32 start_index) client().async_js_console_request_messages(start_index); } -DeprecatedString OutOfProcessWebView::selected_text() -{ - return client().get_selected_text(); -} - -void OutOfProcessWebView::select_all() -{ - client().async_select_all(); -} - DeprecatedString OutOfProcessWebView::dump_layout_tree() { return client().dump_layout_tree(); diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h index b06b27d565..b9911930a5 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h @@ -36,9 +36,6 @@ public: void js_console_input(DeprecatedString const& js_source); void js_console_request_messages(i32 start_index); - DeprecatedString selected_text(); - void select_all(); - DeprecatedString dump_layout_tree(); OrderedHashMap get_local_storage_entries(); diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp index 81da873e7a..3e55943b1f 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.cpp +++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp @@ -61,6 +61,16 @@ void ViewImplementation::reset_zoom() update_zoom(); } +DeprecatedString ViewImplementation::selected_text() +{ + return client().get_selected_text(); +} + +void ViewImplementation::select_all() +{ + client().async_select_all(); +} + void ViewImplementation::get_source() { client().async_get_source(); diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h index 8573a085ec..5ab594e90e 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.h +++ b/Userland/Libraries/LibWebView/ViewImplementation.h @@ -38,6 +38,9 @@ public: void zoom_out(); void reset_zoom(); + DeprecatedString selected_text(); + void select_all(); + void get_source(); void inspect_dom_tree();