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

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

Issue 1107343006: Add a method to enable ChromeVox Next easily for the current run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 &&
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698