| 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'); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 */ | 68 */ |
| 69 this.classicBlacklistRegExp_ = Background.globsToRegExp_( | 69 this.classicBlacklistRegExp_ = Background.globsToRegExp_( |
| 70 chrome.runtime.getManifest()['content_scripts'][0]['exclude_globs']); | 70 chrome.runtime.getManifest()['content_scripts'][0]['exclude_globs']); |
| 71 | 71 |
| 72 /** | 72 /** |
| 73 * Regular expression for whitelisting Next compat. | 73 * Regular expression for whitelisting Next compat. |
| 74 * @type {RegExp} | 74 * @type {RegExp} |
| 75 * @private | 75 * @private |
| 76 */ | 76 */ |
| 77 this.nextCompatRegExp_ = Background.globsToRegExp_([ | 77 this.nextCompatRegExp_ = Background.globsToRegExp_([ |
| 78 '*docs.google.com*' | 78 '*docs.google.com/document/*', |
| 79 '*docs.google.com/spreadsheets/*', |
| 80 '*docs.google.com/presentation/*' |
| 79 ]); | 81 ]); |
| 80 | 82 |
| 81 /** | 83 /** |
| 82 * @type {cursors.Range} | 84 * @type {cursors.Range} |
| 83 * @private | 85 * @private |
| 84 */ | 86 */ |
| 85 this.currentRange_ = null; | 87 this.currentRange_ = null; |
| 86 | 88 |
| 87 /** | 89 /** |
| 88 * @type {cursors.Range} | 90 * @type {cursors.Range} |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 return new RegExp('^(' + globs.map(function(glob) { | 794 return new RegExp('^(' + globs.map(function(glob) { |
| 793 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&') | 795 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&') |
| 794 .replace(/\*/g, '.*') | 796 .replace(/\*/g, '.*') |
| 795 .replace(/\?/g, '.'); | 797 .replace(/\?/g, '.'); |
| 796 }).join('|') + ')$'); | 798 }).join('|') + ')$'); |
| 797 }; | 799 }; |
| 798 | 800 |
| 799 new Background(); | 801 new Background(); |
| 800 | 802 |
| 801 }); // goog.scope | 803 }); // goog.scope |
| OLD | NEW |