| 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 Defines a global object. The initialization of this | 6 * @fileoverview Defines a global object. The initialization of this |
| 7 * object happens in init.js. | 7 * object happens in init.js. |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 ['cvox.BrailleInterface'], | 30 ['cvox.BrailleInterface'], |
| 31 []); | 31 []); |
| 32 | 32 |
| 33 goog.addDependency( | 33 goog.addDependency( |
| 34 '../host/interface/mathjax_interface.js', | 34 '../host/interface/mathjax_interface.js', |
| 35 ['cvox.MathJaxInterface'], | 35 ['cvox.MathJaxInterface'], |
| 36 []); | 36 []); |
| 37 | 37 |
| 38 goog.addDependency( | 38 goog.addDependency( |
| 39 '../chromevox/messages/msgs.js', | 39 '../chromevox/messages/msgs.js', |
| 40 ['cvox.Msgs'], | 40 ['Msgs'], |
| 41 []); | 41 []); |
| 42 | 42 |
| 43 goog.addDependency( | 43 goog.addDependency( |
| 44 '../host/interface/abstract_earcons.js', | 44 '../host/interface/abstract_earcons.js', |
| 45 ['cvox.AbstractEarcons'], | 45 ['cvox.AbstractEarcons'], |
| 46 []); | 46 []); |
| 47 | 47 |
| 48 goog.addDependency( | 48 goog.addDependency( |
| 49 '../chromevox/common/key_sequence.js', | 49 '../chromevox/common/key_sequence.js', |
| 50 ['cvox.KeySequence'], | 50 ['cvox.KeySequence'], |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 cvox.ChromeVox.tts; | 90 cvox.ChromeVox.tts; |
| 91 /** | 91 /** |
| 92 * @type {cvox.BrailleInterface} | 92 * @type {cvox.BrailleInterface} |
| 93 */ | 93 */ |
| 94 cvox.ChromeVox.braille; | 94 cvox.ChromeVox.braille; |
| 95 /** | 95 /** |
| 96 * @type {cvox.MathJaxInterface} | 96 * @type {cvox.MathJaxInterface} |
| 97 */ | 97 */ |
| 98 cvox.ChromeVox.mathJax; | 98 cvox.ChromeVox.mathJax; |
| 99 /** | 99 /** |
| 100 * @type {cvox.Msgs} | |
| 101 */ | |
| 102 cvox.ChromeVox.msgs = null; | |
| 103 /** | |
| 104 * @type {boolean} | 100 * @type {boolean} |
| 105 */ | 101 */ |
| 106 cvox.ChromeVox.isActive = true; | 102 cvox.ChromeVox.isActive = true; |
| 107 /** | 103 /** |
| 108 * @type {?string} | 104 * @type {?string} |
| 109 */ | 105 */ |
| 110 cvox.ChromeVox.version = null; | 106 cvox.ChromeVox.version = null; |
| 111 /** | 107 /** |
| 112 * @type {cvox.AbstractEarcons} | 108 * @type {cvox.AbstractEarcons} |
| 113 */ | 109 */ |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 cvox.ChromeVox.documentHasFocus = function() { | 281 cvox.ChromeVox.documentHasFocus = function() { |
| 286 if (!document.hasFocus() || document.hidden) { | 282 if (!document.hasFocus() || document.hidden) { |
| 287 return false; | 283 return false; |
| 288 } | 284 } |
| 289 if (document.activeElement.tagName == 'IFRAME' || | 285 if (document.activeElement.tagName == 'IFRAME' || |
| 290 document.activeElement.tagName == 'WEBVIEW') { | 286 document.activeElement.tagName == 'WEBVIEW') { |
| 291 return false; | 287 return false; |
| 292 } | 288 } |
| 293 return true; | 289 return true; |
| 294 }; | 290 }; |
| OLD | NEW |