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

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

Issue 2388413002: MD History: Announce search results for screen-reader users (Closed)
Patch Set: announceAccessibleMessage 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
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..69f0e267defcb28fa20710cf4cebb47dca55b134 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) {
Dan Beam 2016/10/05 01:34:48 nit: if (info.term && !this.queryState.incremental
tsergeant 2016/10/05 01:57:32 Done.
+ announceAccessibleMessage(
+ md_history.HistoryItem.searchResultsTitle(results.length, info.term));
+ }
+
if (this.selectedPage_ == 'grouped-list') {
this.$$('#grouped-list').historyData = results;
return;

Powered by Google App Engine
This is Rietveld 408576698