build: fix build without built-in spellchecker (#22594)
This commit is contained in:
parent
3ff98e15d0
commit
bf75e5a91f
5 changed files with 30 additions and 7 deletions
|
@ -9,6 +9,10 @@
|
|||
|
||||
namespace {
|
||||
|
||||
bool IsBuiltinSpellCheckerEnabled() {
|
||||
return BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER);
|
||||
}
|
||||
|
||||
bool IsDesktopCapturerEnabled() {
|
||||
return BUILDFLAG(ENABLE_DESKTOP_CAPTURER);
|
||||
}
|
||||
|
@ -66,6 +70,7 @@ void Initialize(v8::Local<v8::Object> exports,
|
|||
v8::Local<v8::Context> context,
|
||||
void* priv) {
|
||||
gin_helper::Dictionary dict(context->GetIsolate(), exports);
|
||||
dict.SetMethod("isBuiltinSpellCheckerEnabled", &IsBuiltinSpellCheckerEnabled);
|
||||
dict.SetMethod("isDesktopCapturerEnabled", &IsDesktopCapturerEnabled);
|
||||
dict.SetMethod("isOffscreenRenderingEnabled", &IsOffscreenRenderingEnabled);
|
||||
dict.SetMethod("isRemoteModuleEnabled", &IsRemoteModuleEnabled);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue