Change the parameter name for consistency
This commit is contained in:
parent
6717f0d2bb
commit
75b2915fee
4 changed files with 6 additions and 6 deletions
|
@ -869,10 +869,10 @@ bool App::IsAccessibilitySupportEnabled() {
|
||||||
return ax_state->IsAccessibleBrowser();
|
return ax_state->IsAccessibleBrowser();
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::SetAccessibilitySupportEnabled(bool value) {
|
void App::SetAccessibilitySupportEnabled(bool enabled) {
|
||||||
auto ax_state = content::BrowserAccessibilityState::GetInstance();
|
auto ax_state = content::BrowserAccessibilityState::GetInstance();
|
||||||
|
|
||||||
if (value) {
|
if (enabled) {
|
||||||
ax_state->OnScreenReaderDetected();
|
ax_state->OnScreenReaderDetected();
|
||||||
} else {
|
} else {
|
||||||
ax_state->DisableAccessibility();
|
ax_state->DisableAccessibility();
|
||||||
|
|
|
@ -171,7 +171,7 @@ class App : public AtomBrowserClient::Delegate,
|
||||||
void DisableHardwareAcceleration(mate::Arguments* args);
|
void DisableHardwareAcceleration(mate::Arguments* args);
|
||||||
void DisableDomainBlockingFor3DAPIs(mate::Arguments* args);
|
void DisableDomainBlockingFor3DAPIs(mate::Arguments* args);
|
||||||
bool IsAccessibilitySupportEnabled();
|
bool IsAccessibilitySupportEnabled();
|
||||||
void SetAccessibilitySupportEnabled(bool value);
|
void SetAccessibilitySupportEnabled(bool enabled);
|
||||||
Browser::LoginItemSettings GetLoginItemSettings(mate::Arguments* args);
|
Browser::LoginItemSettings GetLoginItemSettings(mate::Arguments* args);
|
||||||
#if defined(USE_NSS_CERTS)
|
#if defined(USE_NSS_CERTS)
|
||||||
void ImportCertificate(const base::DictionaryValue& options,
|
void ImportCertificate(const base::DictionaryValue& options,
|
||||||
|
|
|
@ -890,9 +890,9 @@ technologies, such as screen readers, has been detected. See
|
||||||
https://www.chromium.org/developers/design-documents/accessibility for more
|
https://www.chromium.org/developers/design-documents/accessibility for more
|
||||||
details.
|
details.
|
||||||
|
|
||||||
### `app.setAccessibilitySupportEnabled(value)` _macOS_ _Windows_
|
### `app.setAccessibilitySupportEnabled(enabled)` _macOS_ _Windows_
|
||||||
|
|
||||||
* `value` Boolean - A value for switching the accessibility support
|
* `enabled` Boolean - Enable or disable accessibility tree rendering
|
||||||
|
|
||||||
Manually enables Chrome's accessibility support, allowing to expose accessibility switch to users in application settings. https://www.chromium.org/developers/design-documents/accessibility for more
|
Manually enables Chrome's accessibility support, allowing to expose accessibility switch to users in application settings. https://www.chromium.org/developers/design-documents/accessibility for more
|
||||||
details.
|
details.
|
||||||
|
|
|
@ -38,7 +38,7 @@ Electron applications keep accessibility disabled by default for performance rea
|
||||||
|
|
||||||
### Inside Application
|
### Inside Application
|
||||||
|
|
||||||
By using [`app.setAccessibilitySupportEnabled(value)`](https://electron.atom.io/docs/api/app.md#appsetaccessibilitysupportenabledvalue-macos-windows), you can expose accessibility switch to users in the application preferences.
|
By using [`app.setAccessibilitySupportEnabled(enabled)`](https://electron.atom.io/docs/api/app.md#appsetaccessibilitysupportenabledenabled-macos-windows), you can expose accessibility switch to users in the application preferences.
|
||||||
|
|
||||||
### Assistive Technology
|
### Assistive Technology
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue