| OLD | NEW |
| 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 Script that runs on the background page. | 6 * @fileoverview Script that runs on the background page. |
| 7 * | |
| 8 */ | 7 */ |
| 9 | 8 |
| 10 goog.provide('cvox.ChromeVoxBackground'); | 9 goog.provide('cvox.ChromeVoxBackground'); |
| 11 | 10 |
| 12 goog.require('cvox.AbstractEarcons'); | 11 goog.require('cvox.AbstractEarcons'); |
| 13 goog.require('cvox.AccessibilityApiHandler'); | 12 goog.require('cvox.AccessibilityApiHandler'); |
| 14 goog.require('cvox.BrailleBackground'); | 13 goog.require('cvox.BrailleBackground'); |
| 15 goog.require('cvox.BrailleCaptionsBackground'); | 14 goog.require('cvox.BrailleCaptionsBackground'); |
| 16 goog.require('cvox.ChromeVox'); | 15 goog.require('cvox.ChromeVox'); |
| 17 goog.require('cvox.ChromeVoxEditableTextBase'); | 16 goog.require('cvox.ChromeVoxEditableTextBase'); |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 var background = new cvox.ChromeVoxBackground(); | 543 var background = new cvox.ChromeVoxBackground(); |
| 545 background.init(); | 544 background.init(); |
| 546 window['speak'] = goog.bind(background.tts.speak, background.tts); | 545 window['speak'] = goog.bind(background.tts.speak, background.tts); |
| 547 | 546 |
| 548 // Export the prefs object for access by the options page. | 547 // Export the prefs object for access by the options page. |
| 549 window['prefs'] = background.prefs; | 548 window['prefs'] = background.prefs; |
| 550 | 549 |
| 551 // Export the braille object for access by the options page. | 550 // Export the braille object for access by the options page. |
| 552 window['braille'] = cvox.ChromeVox.braille; | 551 window['braille'] = cvox.ChromeVox.braille; |
| 553 | 552 |
| 554 // Export this background page for ChromeVox Next to access. | 553 // Export injection for ChromeVox Next. |
| 555 cvox.ChromeVox.background = background; | 554 cvox.ChromeVox.injectChromeVoxIntoTabs = |
| 555 background.injectChromeVoxIntoTabs.bind(background); |
| 556 })(); | 556 })(); |
| OLD | NEW |