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

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

Issue 1513933005: Reland: Make the check for compat mode explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/cursors.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
index 5067cf803587fc965407a41ca6406a3a83b62149..5b5a869abc238a655eb661ca16254cd6e8ba62ef 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
@@ -433,6 +433,15 @@ cursors.Range.prototype = {
break;
}
return new cursors.Range(newStart, newEnd);
+ },
+
+ /**
+ * Returns true if this range has either cursor end on web content.
+ * @return {boolean}
+ */
+ isWebRange: function() {
+ return this.start.node.root.role != Role.desktop ||
+ this.end.node.root.role != Role.desktop;
}
};

Powered by Google App Engine
This is Rietveld 408576698