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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/next_earcons.js

Issue 1455223003: Stop ChromeVox Next page loading sounds when page finishes loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@active_indicator_next
Patch Set: Fixed focus changing and removing all tabs, addressed other feedback Created 5 years, 1 month 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/chromeos/chromevox/cvox2/background/next_earcons.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/next_earcons.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/next_earcons.js
index a22726f2c4888eae344c40bb32f7214fae36a109..9d2a6b4b25fc13bdea8fb336afe8d4e68072ba32 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/next_earcons.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/next_earcons.js
@@ -90,7 +90,6 @@ NextEarcons.prototype = {
this.engine_.cancelProgress();
break;
case cvox.Earcon.PAGE_START_LOADING:
- // TODO(dmazzoni): only when the page has focus.
this.engine_.startProgress();
break;
case cvox.Earcon.POP_UP_BUTTON:
@@ -116,5 +115,16 @@ NextEarcons.prototype = {
this.engine_.onWrap();
break;
}
- }
+ },
+
+ /**
+ * @override
+ */
+ cancelEarcon: function(earcon) {
+ switch (earcon) {
+ case cvox.Earcon.PAGE_START_LOADING:
+ this.engine_.cancelProgress();
+ break;
+ }
+ },
};

Powered by Google App Engine
This is Rietveld 408576698