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

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: 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 49c4416d8d3725eca09a7b4c40db6b6770bb1b8c..847ccdf8efdfe45fd50ae381953cdd7859b2b70b 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
@@ -250,6 +250,16 @@ DesktopAutomationHandler.prototype = {
},
/**
+ * Handle updating the active indicator when the document scrolls.
+ * @param {Object} evt
+ */
Peter Lundblad 2015/11/20 11:15:03 @override
dmazzoni 2015/11/20 23:35:14 Done.
+ onScrollPositionChanged: function(evt) {
+ new Output().withLocation(
+ global.backgroundObj.currentRange, null, evt.type)
Peter Lundblad 2015/11/20 11:15:03 currentRange can be null, but this parameter is no
dmazzoni 2015/11/20 23:35:14 Huh. Added a null check.
+ .go();
+ },
+
+ /**
* Create an editable text handler for the given node if needed.
* @param {Object} node
*/

Powered by Google App Engine
This is Rietveld 408576698