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

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

Issue 2144593003: Merge dom node and node unit types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 years, 5 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/chromeos/chromevox/cvox2/background/command_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
index a12746031dc1b2101ed3beaa8174a5a0da17b8e4..474ab3751175d96f915efa99f28a8f942522534c 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
@@ -314,11 +314,11 @@ CommandHandler.onCommand = function(command) {
break;
case 'right':
case 'nextObject':
- current = current.move(cursors.Unit.DOM_NODE, Dir.FORWARD);
+ current = current.move(cursors.Unit.NODE, Dir.FORWARD);
break;
case 'left':
case 'previousObject':
- current = current.move(cursors.Unit.DOM_NODE, Dir.BACKWARD);
+ current = current.move(cursors.Unit.NODE, Dir.BACKWARD);
break;
case 'jumpToTop':
var node = AutomationUtil.findNodePost(
@@ -352,7 +352,7 @@ CommandHandler.onCommand = function(command) {
var prevRange = ChromeVoxState.instance.currentRange_;
var newRange =
ChromeVoxState.instance.currentRange_.move(
- cursors.Unit.DOM_NODE, Dir.FORWARD);
+ cursors.Unit.NODE, Dir.FORWARD);
// Stop if we've wrapped back to the document.
var maybeDoc = newRange.start.node;

Powered by Google App Engine
This is Rietveld 408576698