switch to top recent sites
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user