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; |
} |
}; |