1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

LibWeb+UI: Add internals API to set browser zoom

This commit is contained in:
InvalidUsernameException 2024-12-23 22:15:06 +01:00 committed by Alexander Kalenik
parent f39433d6b0
commit 5cc9a5802d
Notes: github-actions[bot] 2025-01-21 15:12:32 +00:00
17 changed files with 78 additions and 3 deletions

View file

@ -164,6 +164,12 @@ WebContentView::WebContentView(QWidget* window, RefPtr<WebView::WebContentClient
m_select_dropdown->exec(map_point_to_global_position(content_position));
};
on_set_browser_zoom = [this](double factor) {
set_zoom(factor);
auto* window = static_cast<BrowserWindow*>(this->window());
window->update_displayed_zoom_level();
};
}
WebContentView::~WebContentView() = default;