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

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

Issue 2079073002: Make ChromeVox Next a setting in options page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 4 years, 6 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/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 d5da5072a72ead8998c936abee769ddb2527936f..cc155b77ca170cfd9950f5dcd6088362d733e844 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
@@ -98,13 +98,6 @@ DesktopAutomationHandler.prototype = {
ChromeVoxState.instance.setCurrentRange(cursors.Range.fromNode(node));
- // Check to see if we've crossed roots. Continue if we've crossed roots or
- // are not within web content.
- if (node.root.role == RoleType.desktop ||
- !prevRange ||
- prevRange.start.node.root != node.root)
- ChromeVoxState.instance.refreshMode(node.root);
-
// Don't process nodes inside of web content if ChromeVox Next is inactive.
if (node.root.role != RoleType.desktop &&
ChromeVoxState.instance.mode === ChromeVoxMode.CLASSIC) {
@@ -232,8 +225,6 @@ DesktopAutomationHandler.prototype = {
* @param {!AutomationEvent} evt
*/
onLoadComplete: function(evt) {
- ChromeVoxState.instance.refreshMode(evt.target);
-
// Don't process nodes inside of web content if ChromeVox Next is inactive.
if (evt.target.root.role != RoleType.desktop &&
ChromeVoxState.instance.mode === ChromeVoxMode.CLASSIC)

Powered by Google App Engine
This is Rietveld 408576698