Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7390)

Unified Diff: chrome/browser/resources/md_history/list_container.js

Issue 2405993002: MD History: Use iron-a11y-announcer to announce search result messages (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_history/list_container.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/list_container.js
diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
index a0b7efeb8161e0eb0c198534a84da4dc04898525..f751a8345d1f38dc8b4db1e5d4a1185d31437a5e 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -42,8 +42,11 @@ Polymer({
this.closeMenu_();
if (info.term && !this.queryState.incremental) {
- announceAccessibleMessage(
- md_history.HistoryItem.searchResultsTitle(results.length, info.term));
+ Polymer.IronA11yAnnouncer.requestAvailability();
+ this.fire('iron-announce', {
+ text:
+ md_history.HistoryItem.searchResultsTitle(results.length, info.term)
+ });
}
if (this.selectedPage_ == 'grouped-list') {
« no previous file with comments | « chrome/browser/resources/md_history/list_container.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698