feat: add property to accessible BrowserWindow window title by mshoho · Pull Request #19698 · electron/electron · GitHub
Skip to content

feat: add property to accessible BrowserWindow window title#19698

Merged
alexeykuzmin merged 5 commits into
electron:masterfrom
mshoho:accessible-window-title
Aug 27, 2019
Merged

feat: add property to accessible BrowserWindow window title#19698
alexeykuzmin merged 5 commits into
electron:masterfrom
mshoho:accessible-window-title

Conversation

@mshoho

@mshoho mshoho commented Aug 9, 2019

Copy link
Copy Markdown
Contributor

Description of Change

Sometimes it's necessary to convey more information about the window to the screen reader users only (simply putting everything to the window title might be unnecessarily noisy).

For example, Chromium uses that technique to tell the screen reader users that the window is in incognito mode (the incognito window looks differently and doesn't have «incognito» in the title, but for the blind users the screen reader will announce that it's incognito).

Chromium has GetAccessibleWindowTitle() method internally. This PR exposes a way to customize the accessible title via Electron API.

Checklist

Release Notes

Notes: Added win.accessibleTitle property to be able to augment the window title for the screen readers.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 9, 2019
@welcome

welcome Bot commented Aug 9, 2019

Copy link
Copy Markdown

@alexeykuzmin

Copy link
Copy Markdown
Contributor

@mshoho please use the PR template for description.

Comment thread shell/browser/native_window.h Outdated
Comment thread shell/browser/native_window.cc
Comment thread docs/api/browser-window.md Outdated

@miniak miniak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved by mistake, please address those minor issues

@miniak

miniak commented Aug 9, 2019

Copy link
Copy Markdown
Contributor

please use the correct PR template

Comment thread shell/browser/api/atom_api_top_level_window.cc Outdated
@codebytere codebytere changed the title feat: Accessible window title feat: add property to accessible BrowserWindow window title Aug 9, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Aug 10, 2019
Comment thread docs/api/browser-window.md Outdated
@miniak miniak requested a review from MarshallOfSound August 16, 2019 14:46
@miniak

miniak commented Aug 24, 2019

Copy link
Copy Markdown
Contributor

@MarshallOfSound can you please review the current version?

Comment thread shell/browser/native_window.cc Outdated
Comment thread docs/api/browser-window.md Outdated
@miniak miniak requested a review from MarshallOfSound August 27, 2019 11:09

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright. Thanks for the patch!

Comment thread shell/browser/native_window.cc
@alexeykuzmin alexeykuzmin merged commit ae9424d into electron:master Aug 27, 2019
@welcome

welcome Bot commented Aug 27, 2019

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

@release-clerk

release-clerk Bot commented Aug 27, 2019

Copy link
Copy Markdown

@alexeykuzmin alexeykuzmin mentioned this pull request Aug 28, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants