mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
Ladybird: Add autocomplete to LocationEdit
This commit is contained in:
parent
8fcf42f684
commit
d68433653a
9 changed files with 453 additions and 8 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue