/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Browser { class WindowActions { public: static WindowActions& the(); WindowActions(GUI::Window&); Function on_create_new_tab; Function on_next_tab; Function on_previous_tab; Function on_about; Function on_show_bookmarks_bar; GUI::Action& create_new_tab_action() { return *m_create_new_tab_action; } GUI::Action& next_tab_action() { return *m_next_tab_action; } GUI::Action& previous_tab_action() { return *m_previous_tab_action; } GUI::Action& about_action() { return *m_about_action; } GUI::Action& show_bookmarks_bar_action() { return *m_show_bookmarks_bar_action; } private: RefPtr m_create_new_tab_action; RefPtr m_next_tab_action; RefPtr m_previous_tab_action; RefPtr m_about_action; RefPtr m_show_bookmarks_bar_action; }; }