Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
index 01eab7fe8e6367f4e0b3a0fd8567323a792450ed..662d5d3f87c86349da1609135c680f30bea718aa 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
@@ -77,6 +77,11 @@ Background = function() { |
}; |
Background.prototype = { |
+ /** Forces ChromeVox Next to be active for all tabs. */ |
+ forceChromeVoxNextActive: function() { |
+ this.active_ = true; |
+ }, |
+ |
/** |
* Handles all setup once a new automation tree appears. |
* @param {chrome.automation.AutomationNode} desktop |
@@ -248,7 +253,7 @@ Background.prototype = { |
* @param {Object} evt |
*/ |
onLoadComplete: function(evt) { |
- var next = this.isWhitelisted_(evt.target.attributes.url); |
+ var next = this.isWhitelisted_(evt.target.attributes.url) || this.active_; |
this.toggleChromeVoxVersion({next: next, classic: !next}); |
// Don't process nodes inside of web content if ChromeVox Next is inactive. |
if (evt.target.root.role != chrome.automation.RoleType.desktop && |