From 6e19ab2bbce0b113b628e6f8e9b5c0640053933e Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 4 Dec 2022 18:02:33 +0000 Subject: AK+Everywhere: Rename String to DeprecatedString We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^) --- Userland/Libraries/LibWebView/ViewImplementation.h | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'Userland/Libraries/LibWebView/ViewImplementation.h') diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h index 65c004fd8b..9daac99072 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.h +++ b/Userland/Libraries/LibWebView/ViewImplementation.h @@ -23,39 +23,39 @@ public: virtual void notify_server_did_invalidate_content_rect(Badge, Gfx::IntRect const&) = 0; virtual void notify_server_did_change_selection(Badge) = 0; virtual void notify_server_did_request_cursor_change(Badge, Gfx::StandardCursor cursor) = 0; - virtual void notify_server_did_change_title(Badge, String const&) = 0; + virtual void notify_server_did_change_title(Badge, DeprecatedString const&) = 0; virtual void notify_server_did_request_scroll(Badge, i32, i32) = 0; virtual void notify_server_did_request_scroll_to(Badge, Gfx::IntPoint const&) = 0; virtual void notify_server_did_request_scroll_into_view(Badge, Gfx::IntRect const&) = 0; - virtual void notify_server_did_enter_tooltip_area(Badge, Gfx::IntPoint const&, String const&) = 0; + virtual void notify_server_did_enter_tooltip_area(Badge, Gfx::IntPoint const&, DeprecatedString const&) = 0; virtual void notify_server_did_leave_tooltip_area(Badge) = 0; virtual void notify_server_did_hover_link(Badge, const AK::URL&) = 0; virtual void notify_server_did_unhover_link(Badge) = 0; - virtual void notify_server_did_click_link(Badge, const AK::URL&, String const& target, unsigned modifiers) = 0; - virtual void notify_server_did_middle_click_link(Badge, const AK::URL&, String const& target, unsigned modifiers) = 0; + virtual void notify_server_did_click_link(Badge, const AK::URL&, DeprecatedString const& target, unsigned modifiers) = 0; + virtual void notify_server_did_middle_click_link(Badge, const AK::URL&, DeprecatedString const& target, unsigned modifiers) = 0; virtual void notify_server_did_start_loading(Badge, const AK::URL&, bool is_redirect) = 0; virtual void notify_server_did_finish_loading(Badge, const AK::URL&) = 0; virtual void notify_server_did_request_navigate_back(Badge) = 0; virtual void notify_server_did_request_navigate_forward(Badge) = 0; virtual void notify_server_did_request_refresh(Badge) = 0; virtual void notify_server_did_request_context_menu(Badge, Gfx::IntPoint const&) = 0; - virtual void notify_server_did_request_link_context_menu(Badge, Gfx::IntPoint const&, const AK::URL&, String const& target, unsigned modifiers) = 0; - virtual void notify_server_did_request_image_context_menu(Badge, Gfx::IntPoint const&, const AK::URL&, String const& target, unsigned modifiers, Gfx::ShareableBitmap const&) = 0; - virtual void notify_server_did_request_alert(Badge, String const& message) = 0; - virtual void notify_server_did_request_confirm(Badge, String const& message) = 0; - virtual void notify_server_did_request_prompt(Badge, String const& message, String const& default_) = 0; - virtual void notify_server_did_request_set_prompt_text(Badge, String const& message) = 0; + virtual void notify_server_did_request_link_context_menu(Badge, Gfx::IntPoint const&, const AK::URL&, DeprecatedString const& target, unsigned modifiers) = 0; + virtual void notify_server_did_request_image_context_menu(Badge, Gfx::IntPoint const&, const AK::URL&, DeprecatedString const& target, unsigned modifiers, Gfx::ShareableBitmap const&) = 0; + virtual void notify_server_did_request_alert(Badge, DeprecatedString const& message) = 0; + virtual void notify_server_did_request_confirm(Badge, DeprecatedString const& message) = 0; + virtual void notify_server_did_request_prompt(Badge, DeprecatedString const& message, DeprecatedString const& default_) = 0; + virtual void notify_server_did_request_set_prompt_text(Badge, DeprecatedString const& message) = 0; virtual void notify_server_did_request_accept_dialog(Badge) = 0; virtual void notify_server_did_request_dismiss_dialog(Badge) = 0; - virtual void notify_server_did_get_source(const AK::URL& url, String const& source) = 0; - virtual void notify_server_did_get_dom_tree(String const& dom_tree) = 0; - virtual void notify_server_did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style, String const& custom_properties, String const& node_box_sizing) = 0; + virtual void notify_server_did_get_source(const AK::URL& url, DeprecatedString const& source) = 0; + virtual void notify_server_did_get_dom_tree(DeprecatedString const& dom_tree) = 0; + virtual void notify_server_did_get_dom_node_properties(i32 node_id, DeprecatedString const& specified_style, DeprecatedString const& computed_style, DeprecatedString const& custom_properties, DeprecatedString const& node_box_sizing) = 0; virtual void notify_server_did_output_js_console_message(i32 message_index) = 0; - virtual void notify_server_did_get_js_console_messages(i32 start_index, Vector const& message_types, Vector const& messages) = 0; + virtual void notify_server_did_get_js_console_messages(i32 start_index, Vector const& message_types, Vector const& messages) = 0; virtual void notify_server_did_change_favicon(Gfx::Bitmap const& favicon) = 0; virtual Vector notify_server_did_request_all_cookies(Badge, AK::URL const& url) = 0; - virtual Optional notify_server_did_request_named_cookie(Badge, AK::URL const& url, String const& name) = 0; - virtual String notify_server_did_request_cookie(Badge, const AK::URL& url, Web::Cookie::Source source) = 0; + virtual Optional notify_server_did_request_named_cookie(Badge, AK::URL const& url, DeprecatedString const& name) = 0; + virtual DeprecatedString notify_server_did_request_cookie(Badge, const AK::URL& url, Web::Cookie::Source source) = 0; virtual void notify_server_did_set_cookie(Badge, const AK::URL& url, Web::Cookie::ParsedCookie const& cookie, Web::Cookie::Source source) = 0; virtual void notify_server_did_update_cookie(Badge, AK::URL const& url, Web::Cookie::Cookie const& cookie) = 0; virtual void notify_server_did_update_resource_count(i32 count_waiting) = 0; @@ -65,7 +65,7 @@ public: virtual Gfx::IntRect notify_server_did_request_maximize_window() = 0; virtual Gfx::IntRect notify_server_did_request_minimize_window() = 0; virtual Gfx::IntRect notify_server_did_request_fullscreen_window() = 0; - virtual void notify_server_did_request_file(Badge, String const& path, i32) = 0; + virtual void notify_server_did_request_file(Badge, DeprecatedString const& path, i32) = 0; virtual void notify_server_did_finish_handling_input_event(bool event_was_accepted) = 0; }; -- cgit v1.2.3