mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 18:00:31 +00:00
This page renders the bookmarks as a tree and hook context menu events up to the UI's bookmarks bar context menus to allow editing bookmarks. Users can also drag-and-drop bookmark items around.
28 lines
537 B
C++
28 lines
537 B
C++
/*
|
|
* Copyright (c) 2026, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWebView/BookmarkStore.h>
|
|
#include <LibWebView/WebUI.h>
|
|
|
|
namespace WebView {
|
|
|
|
class BookmarksUI
|
|
: public WebUI
|
|
, public BookmarkStoreObserver {
|
|
WEB_UI(BookmarksUI);
|
|
|
|
private:
|
|
virtual void register_interfaces() override;
|
|
virtual void bookmarks_changed() override;
|
|
|
|
void load_bookmarks();
|
|
void move_item(JsonValue const&);
|
|
void show_context_menu(JsonValue const&);
|
|
};
|
|
|
|
}
|