1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +00:00

Ladybird: Add autocomplete to LocationEdit

This commit is contained in:
Cameron Youell 2023-05-31 11:44:16 +10:00 committed by Sam Atkins
parent 8fcf42f684
commit d68433653a
9 changed files with 453 additions and 8 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
* Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -37,6 +38,23 @@ public:
QString new_tab_page();
void set_new_tab_page(QString const& page);
struct EngineProvider {
QString name;
QString url;
};
EngineProvider search_engine();
void set_search_engine(EngineProvider const& engine);
EngineProvider autocomplete_engine();
void set_autocomplete_engine(EngineProvider const& engine);
bool enable_autocomplete();
void set_enable_autocomplete(bool enable);
bool enable_search();
void set_enable_search(bool enable);
protected:
Settings();