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

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

Issue 656813002: Support running ChromeVox in uncompressed mode and compress ChromeVox next by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Address nits. Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview The entry point for all ChromeVox2 related code for the 6 * @fileoverview The entry point for all ChromeVox2 related code for the
7 * background page. 7 * background page.
8 */ 8 */
9 9
10 goog.provide('cvox2.Background'); 10 goog.provide('cvox2.Background');
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 for (var eventType in this.listeners_) { 279 for (var eventType in this.listeners_) {
280 this.current_.root.removeEventListener( 280 this.current_.root.removeEventListener(
281 eventType, this.listeners_[eventType], true); 281 eventType, this.listeners_[eventType], true);
282 } 282 }
283 } 283 }
284 this.active_ = false; 284 this.active_ = false;
285 } 285 }
286 286
287 chrome.tabs.query({active: true}, function(tabs) { 287 chrome.tabs.query({active: true}, function(tabs) {
288 if (opt_options.classic) { 288 if (opt_options.classic) {
289 cvox.ChromeVox.injectChromeVoxIntoTabs(tabs, true); 289 cvox.ChromeVox.injectChromeVoxIntoTabs(tabs);
290 } else { 290 } else {
291 tabs.forEach(function(tab) { 291 tabs.forEach(function(tab) {
292 this.disableClassicChromeVox_(tab.id); 292 this.disableClassicChromeVox_(tab.id);
293 }.bind(this)); 293 }.bind(this));
294 } 294 }
295 }.bind(this)); 295 }.bind(this));
296 } 296 }
297 }; 297 };
298 298
299 /** @type {cvox2.Background} */ 299 /** @type {cvox2.Background} */
300 cvox2.global.backgroundObj = new cvox2.Background(); 300 cvox2.global.backgroundObj = new cvox2.Background();
301 301
302 }); // goog.scope 302 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698