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

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

Issue 1458723002: Finish implementing ChromeVox Next active indicator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@load_key_map
Patch Set: Made test expectations approximate 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/desktop_automation_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
index d462777555687e16f85209c49200503fda325c5f..bdc3278194c8cb2089c30d4b54c49f2ab13a9b22 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
@@ -252,6 +252,16 @@ DesktopAutomationHandler.prototype = {
},
/**
+ * Handle updating the active indicator when the document scrolls.
+ * @override
+ */
+ onScrollPositionChanged: function(evt) {
+ var currentRange = global.backgroundObj.currentRange;
+ if (currentRange)
+ new Output().withLocation(currentRange, null, evt.type).go();
+ },
+
+ /**
* Create an editable text handler for the given node if needed.
* @param {Object} node
*/

Powered by Google App Engine
This is Rietveld 408576698