switch to top recent sites

This commit is contained in:
Fabian Freund
2026-03-09 12:30:58 +01:00
parent 62aed84fd8
commit 0fa526b1cb
9 changed files with 2205 additions and 2801 deletions
@@ -557,6 +557,15 @@ class HistoryHighlight {
);
}
class TopFrecentSiteInfo {
final String url;
final String? title;
TopFrecentSiteInfo(this.url, this.title);
}
enum FrecencyThresholdOption { none, skipOneTimePages }
class HistoryItem {
final String url;
final String title;
@@ -1823,6 +1832,12 @@ abstract class GeckoHistoryApi {
HistoryHighlightWeights weights,
int limit,
);
@async
List<TopFrecentSiteInfo> getTopFrecentSites(
int limit,
FrecencyThresholdOption frecencyThreshold,
);
}
@HostApi()