| 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 goog.provide('global'); | 11 goog.provide('global'); |
| 12 | 12 |
| 13 goog.require('AutomationPredicate'); | 13 goog.require('AutomationPredicate'); |
| 14 goog.require('AutomationUtil'); | 14 goog.require('AutomationUtil'); |
| 15 goog.require('Output'); | 15 goog.require('Output'); |
| 16 goog.require('Output.EventType'); | 16 goog.require('Output.EventType'); |
| 17 goog.require('cursors.Cursor'); | 17 goog.require('cursors.Cursor'); |
| 18 goog.require('cvox.ChromeVoxEditableTextBase'); | 18 goog.require('cvox.ChromeVoxEditableTextBase'); |
| 19 goog.require('cvox.TabsApiHandler'); | 19 goog.require('cvox.TabsApiHandler'); |
| 20 | 20 |
| 21 // Define types here due to editable_text.js's implicit dependency with | |
| 22 // ChromeVoxEventWatcher. | |
| 23 /** @type {Object} */ | |
| 24 cvox.ChromeVoxEventWatcher; | |
| 25 /** @type {function(boolean)} */ | |
| 26 cvox.ChromeVoxEventWatcher.handleTextChanged; | |
| 27 /** @type {function()} */ | |
| 28 cvox.ChromeVoxEventWatcher.setUpTextHandler; | |
| 29 | |
| 30 goog.scope(function() { | 21 goog.scope(function() { |
| 31 var AutomationNode = chrome.automation.AutomationNode; | 22 var AutomationNode = chrome.automation.AutomationNode; |
| 32 var Dir = AutomationUtil.Dir; | 23 var Dir = AutomationUtil.Dir; |
| 33 var EventType = chrome.automation.EventType; | 24 var EventType = chrome.automation.EventType; |
| 34 | 25 |
| 35 /** | 26 /** |
| 36 * ChromeVox2 background page. | 27 * ChromeVox2 background page. |
| 37 * @constructor | 28 * @constructor |
| 38 */ | 29 */ |
| 39 Background = function() { | 30 Background = function() { |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 }.bind(this)); | 392 }.bind(this)); |
| 402 } | 393 } |
| 403 }.bind(this)); | 394 }.bind(this)); |
| 404 } | 395 } |
| 405 }; | 396 }; |
| 406 | 397 |
| 407 /** @type {Background} */ | 398 /** @type {Background} */ |
| 408 global.backgroundObj = new Background(); | 399 global.backgroundObj = new Background(); |
| 409 | 400 |
| 410 }); // goog.scope | 401 }); // goog.scope |
| OLD | NEW |