| 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 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('Background'); | 10 goog.provide('Background'); |
| 11 | 11 |
| 12 goog.require('AutomationPredicate'); | 12 goog.require('AutomationPredicate'); |
| 13 goog.require('AutomationUtil'); | 13 goog.require('AutomationUtil'); |
| 14 goog.require('BackgroundKeyboardHandler'); | 14 goog.require('BackgroundKeyboardHandler'); |
| 15 goog.require('BrailleCommandHandler'); | 15 goog.require('BrailleCommandHandler'); |
| 16 goog.require('ChromeVoxState'); | 16 goog.require('ChromeVoxState'); |
| 17 goog.require('CommandHandler'); | 17 goog.require('CommandHandler'); |
| 18 goog.require('FindHandler'); | 18 goog.require('FindHandler'); |
| 19 goog.require('LiveRegions'); | 19 goog.require('LiveRegions'); |
| 20 goog.require('MediaAutomationHandler'); |
| 20 goog.require('NextEarcons'); | 21 goog.require('NextEarcons'); |
| 21 goog.require('Notifications'); | 22 goog.require('Notifications'); |
| 22 goog.require('Output'); | 23 goog.require('Output'); |
| 23 goog.require('Output.EventType'); | 24 goog.require('Output.EventType'); |
| 24 goog.require('PanelCommand'); | 25 goog.require('PanelCommand'); |
| 25 goog.require('Stubs'); | 26 goog.require('Stubs'); |
| 26 goog.require('constants'); | 27 goog.require('constants'); |
| 27 goog.require('cursors.Cursor'); | 28 goog.require('cursors.Cursor'); |
| 28 goog.require('cvox.BrailleKeyCommand'); | 29 goog.require('cvox.BrailleKeyCommand'); |
| 29 goog.require('cvox.ChromeVoxBackground'); | 30 goog.require('cvox.ChromeVoxBackground'); |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 return new RegExp('^(' + globs.map(function(glob) { | 848 return new RegExp('^(' + globs.map(function(glob) { |
| 848 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&') | 849 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&') |
| 849 .replace(/\*/g, '.*') | 850 .replace(/\*/g, '.*') |
| 850 .replace(/\?/g, '.'); | 851 .replace(/\?/g, '.'); |
| 851 }).join('|') + ')$'); | 852 }).join('|') + ')$'); |
| 852 }; | 853 }; |
| 853 | 854 |
| 854 new Background(); | 855 new Background(); |
| 855 | 856 |
| 856 }); // goog.scope | 857 }); // goog.scope |
| OLD | NEW |