refactor: make accessibilitySupportEnabled a property on app (#17362)

* refactor: make accessibilitySupport a prop on app

* fix docs

* update spec
This commit is contained in:
Shelley Vohr 2019-04-04 19:49:04 -07:00 committed by GitHub
parent 11699d8611
commit 9c3cb55ef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 56 additions and 36 deletions

View file

@ -38,8 +38,6 @@ Object.assign(app, {
}
})
app.getFileIcon = deprecate.promisify(app.getFileIcon)
// we define this here because it'd be overly complicated to
// do in native land
Object.defineProperty(app, 'applicationMenu', {
@ -76,6 +74,12 @@ for (const name of events) {
})
}
// Function Deprecations
app.getFileIcon = deprecate.promisify(app.getFileIcon)
// Property Deprecations
deprecate.fnToProperty(app, 'accessibilitySupportEnabled', '_isAccessibilitySupportEnabled', '_setAccessibilitySupportEnabled')
// Wrappers for native classes.
const { DownloadItem } = process.electronBinding('download_item')
Object.setPrototypeOf(DownloadItem.prototype, EventEmitter.prototype)