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

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

Issue 2388413002: MD History: Announce search results for screen-reader users (Closed)
Patch Set: Address nits 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/history_item.js ('k') | ui/webui/resources/js/util.js » ('j') | 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 dd7c29c11ae7adbbdc8ad1d23af3d3f3aa57d703..a0b7efeb8161e0eb0c198534a84da4dc04898525 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -41,6 +41,11 @@ Polymer({
this.initializeResults_(info, results);
this.closeMenu_();
+ if (info.term && !this.queryState.incremental) {
+ announceAccessibleMessage(
+ md_history.HistoryItem.searchResultsTitle(results.length, info.term));
+ }
+
if (this.selectedPage_ == 'grouped-list') {
this.$$('#grouped-list').historyData = results;
return;
« no previous file with comments | « chrome/browser/resources/md_history/history_item.js ('k') | ui/webui/resources/js/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698