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

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

Issue 572373002: Refactor tabs API handlers out of AccessibilityApiHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Getting out of a bind. Created 6 years, 3 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/chromevox2/chromevox.gyp ('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/chromevox2/cvox2/background/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.js
index 98aa57ddb5a251bb78c1c27cab04ecc29c90b2c3..44f803d2a0e7c02a9ac9f04d74dab526ee286baa 100644
--- a/chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.js
@@ -10,6 +10,8 @@
goog.provide('cvox2.Background');
goog.provide('cvox2.global');
+goog.require('cvox.TabsApiHandler');
+
/** Classic Chrome accessibility API. */
cvox2.global.accessibility =
chrome.accessibilityPrivate || chrome.experimental.accessibility;
@@ -25,9 +27,12 @@ cvox2.Background = function() {
*/
this.whitelist_ = ['http://www.chromevox.com/', 'chromevox_next_test'];
+ /** @type {cvox.TabsApiHandler} @private */
+ this.tabsHandler_ = new cvox.TabsApiHandler(cvox.ChromeVox.tts,
+ cvox.ChromeVox.braille,
+ cvox.ChromeVox.earcons);
+
// Only needed with unmerged ChromeVox classic loaded before.
- // TODO(dtseng): Refactor all tabs handlers out of
- // accessibility_api_handler.js.
cvox2.global.accessibility.setAccessibilityEnabled(false);
// Manually bind all functions to |this|.
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox2/chromevox.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698