feat: implement systemPreferences.getMediaAccessStatus() on Windows (#24275)

This commit is contained in:
Milan Burda 2020-06-25 18:47:50 +02:00 committed by GitHub
parent 5b80556da2
commit 9b4572de44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 6 deletions

View file

@ -49,6 +49,8 @@ class SystemPreferences : public gin_helper::EventEmitter<SystemPreferences>
std::string GetAccentColor();
std::string GetColor(gin_helper::ErrorThrower thrower,
const std::string& color);
std::string GetMediaAccessStatus(const std::string& media_type,
gin_helper::Arguments* args);
#endif
#if defined(OS_WIN)
bool IsAeroGlassEnabled();
@ -99,8 +101,6 @@ class SystemPreferences : public gin_helper::EventEmitter<SystemPreferences>
static bool IsTrustedAccessibilityClient(bool prompt);
std::string GetMediaAccessStatus(const std::string& media_type,
gin_helper::Arguments* args);
v8::Local<v8::Promise> AskForMediaAccess(v8::Isolate* isolate,
const std::string& media_type);