mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Remove now-duplicated actions from IPWV regarding text selection
This commit is contained in:
parent
615a1c7210
commit
22ab512f39
Notes:
sideshowbarker
2024-07-18 09:03:12 +09:00
Author: https://github.com/trflynn89
Commit: 22ab512f39
Pull-request: https://github.com/SerenityOS/serenity/pull/8740
2 changed files with 0 additions and 15 deletions
|
@ -7,7 +7,6 @@
|
|||
#include <AK/URL.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/MimeData.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/Clipboard.h>
|
||||
#include <LibGUI/InputBox.h>
|
||||
|
@ -38,14 +37,6 @@ InProcessWebView::InProcessWebView()
|
|||
set_should_hide_unnecessary_scrollbars(true);
|
||||
set_background_role(ColorRole::Base);
|
||||
set_focus_policy(GUI::FocusPolicy::StrongFocus);
|
||||
|
||||
m_copy_action = GUI::CommonActions::make_copy_action([this](auto&) {
|
||||
GUI::Clipboard::the().set_plain_text(selected_text());
|
||||
});
|
||||
|
||||
m_select_all_action = GUI::CommonActions::make_select_all_action([this](auto&) {
|
||||
select_all();
|
||||
});
|
||||
}
|
||||
|
||||
InProcessWebView::~InProcessWebView()
|
||||
|
|
|
@ -42,9 +42,6 @@ public:
|
|||
|
||||
void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; }
|
||||
|
||||
GUI::Action& select_all_action() { return *m_select_all_action; }
|
||||
GUI::Action& copy_action() { return *m_copy_action; }
|
||||
|
||||
String selected_text() const;
|
||||
void select_all();
|
||||
|
||||
|
@ -99,9 +96,6 @@ private:
|
|||
bool m_should_show_line_box_borders { false };
|
||||
|
||||
NonnullOwnPtr<Page> m_page;
|
||||
|
||||
RefPtr<GUI::Action> m_copy_action;
|
||||
RefPtr<GUI::Action> m_select_all_action;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue