Merge pull request #10305 from ivmirx/macos-accessibility

Special attribute for macOS accessibility
This commit is contained in:
Cheng Zhao 2017-09-11 17:58:20 +09:00 committed by GitHub
commit e6733b4b23
5 changed files with 58 additions and 2 deletions

View file

@ -890,6 +890,15 @@ technologies, such as screen readers, has been detected. See
https://www.chromium.org/developers/design-documents/accessibility for more
details.
### `app.setAccessibilitySupportEnabled(enabled)` _macOS_ _Windows_
* `enabled` Boolean - Enable or disable [accessibility tree](https://developers.google.com/web/fundamentals/accessibility/semantics-builtin/the-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
details. Disabled by default.
**Note:** Rendering accessibility tree can significantly affect the performance of your app. It should not be enabled by default.
### `app.setAboutPanelOptions(options)` _macOS_
* `options` Object