chore: remove deprecated systemPreferences color scheme events (#39341)
This commit is contained in:
parent
cf658b700d
commit
d166182865
6 changed files with 21 additions and 49 deletions
|
@ -33,16 +33,6 @@ SystemPreferences::~SystemPreferences() {
|
|||
SystemPreferences::~SystemPreferences() = default;
|
||||
#endif
|
||||
|
||||
bool SystemPreferences::IsInvertedColorScheme() {
|
||||
return ui::NativeTheme::GetInstanceForNativeUi()
|
||||
->GetPlatformHighContrastColorScheme() ==
|
||||
ui::NativeTheme::PlatformHighContrastColorScheme::kDark;
|
||||
}
|
||||
|
||||
bool SystemPreferences::IsHighContrastColorScheme() {
|
||||
return ui::NativeTheme::GetInstanceForNativeUi()->UserHasContrastPreference();
|
||||
}
|
||||
|
||||
v8::Local<v8::Value> SystemPreferences::GetAnimationSettings(
|
||||
v8::Isolate* isolate) {
|
||||
gin_helper::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue