feat: add app.getRecentDocuments() (#45839)

feat: add app.getRecentDocuments()
This commit is contained in:
Shelley Vohr
2025-07-31 16:15:33 +02:00
committed by GitHub
parent 2c916cfa33
commit ecb1eb0b5d
8 changed files with 142 additions and 11 deletions

View File

@@ -1720,6 +1720,8 @@ gin::ObjectTemplateBuilder App::GetObjectTemplateBuilder(v8::Isolate* isolate) {
base::BindRepeating(&Browser::AddRecentDocument, browser))
.SetMethod("clearRecentDocuments",
base::BindRepeating(&Browser::ClearRecentDocuments, browser))
.SetMethod("getRecentDocuments",
base::BindRepeating(&Browser::GetRecentDocuments, browser))
#if BUILDFLAG(IS_WIN)
.SetMethod("setAppUserModelId",
base::BindRepeating(&Browser::SetAppUserModelID, browser))