mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00

These classes are used as-is in all chromes. Move them to LibWebView so that non-Serenity chromes don't have to awkwardly reach into its headers and sources.
35 lines
745 B
C++
35 lines
745 B
C++
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "HistoryModel.h"
|
|
#include <LibGUI/FilteringProxyModel.h>
|
|
#include <LibGUI/TextBox.h>
|
|
#include <LibGUI/Widget.h>
|
|
#include <LibWebView/History.h>
|
|
|
|
namespace Browser {
|
|
|
|
class HistoryWidget final : public GUI::Widget {
|
|
C_OBJECT(HistoryWidget);
|
|
|
|
public:
|
|
virtual ~HistoryWidget() override = default;
|
|
|
|
void set_history_entries(Vector<WebView::History::URLTitlePair> entries);
|
|
void clear_history_entries();
|
|
|
|
private:
|
|
HistoryWidget();
|
|
|
|
RefPtr<GUI::TableView> m_table_view;
|
|
RefPtr<GUI::TextBox> m_textbox;
|
|
RefPtr<HistoryModel> m_model;
|
|
RefPtr<GUI::FilteringProxyModel> m_filtering_model;
|
|
};
|
|
|
|
}
|