feat: add session.listWordsFromSpellCheckerDictionary API (#22101)

* doesn't work yet but compiles.

* works

* fixup
This commit is contained in:
Erick Zhao 2020-02-10 14:08:53 -08:00 committed by GitHub
parent 6fe7d65c9d
commit 9942149f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 68 additions and 0 deletions

View file

@ -95,6 +95,7 @@ class Session : public gin_helper::TrackableObject<Session>,
base::Value GetSpellCheckerLanguages();
void SetSpellCheckerLanguages(gin_helper::ErrorThrower thrower,
const std::vector<std::string>& languages);
v8::Local<v8::Promise> ListWordsInSpellCheckerDictionary();
bool AddWordToSpellCheckerDictionary(const std::string& word);
bool RemoveWordFromSpellCheckerDictionary(const std::string& word);
#endif