| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 /** | 199 /** |
| 200 * Synchronizes ChromeVox's internal cursor to the targetNode. | 200 * Synchronizes ChromeVox's internal cursor to the targetNode. |
| 201 * @param {Node} targetNode The node that ChromeVox should be synced to. | 201 * @param {Node} targetNode The node that ChromeVox should be synced to. |
| 202 * @param {boolean=} speakNode If true, speaks out the node. | 202 * @param {boolean=} speakNode If true, speaks out the node. |
| 203 * @param {number=} opt_queueMode The queue mode to use for speaking. | 203 * @param {number=} opt_queueMode The queue mode to use for speaking. |
| 204 */ | 204 */ |
| 205 cvox.ChromeVox.syncToNode = function( | 205 cvox.ChromeVox.syncToNode = function( |
| 206 targetNode, speakNode, opt_queueMode) {}; | 206 targetNode, speakNode, opt_queueMode) {}; |
| 207 | 207 |
| 208 /** | 208 /** |
| 209 * Speaks the given node. | |
| 210 * @param {Node} targetNode The node that ChromeVox should be synced to. | |
| 211 * @param {number=} queueMode The queue mode to use for speaking. | |
| 212 * @param {Object=} properties Speech properties to use for this utterance. | |
| 213 */ | |
| 214 cvox.ChromeVox.speakNode = function(targetNode, queueMode, properties) {}; | |
| 215 | |
| 216 /** | |
| 217 * Provide a way for modules that can't depend on cvox.ChromeVoxUserCommands | 209 * Provide a way for modules that can't depend on cvox.ChromeVoxUserCommands |
| 218 * to execute commands. | 210 * to execute commands. |
| 219 * | 211 * |
| 220 * @param {string} commandName The command name as a string. | 212 * @param {string} commandName The command name as a string. |
| 221 */ | 213 */ |
| 222 cvox.ChromeVox.executeUserCommand = function(commandName) {}; | 214 cvox.ChromeVox.executeUserCommand = function(commandName) {}; |
| 223 | 215 |
| 224 /** | 216 /** |
| 225 * True if the document body has aria-hidden='true' when we first load. | 217 * True if the document body has aria-hidden='true' when we first load. |
| 226 * ChromeVox will disallow any navigation and not eat any keystrokes. | 218 * ChromeVox will disallow any navigation and not eat any keystrokes. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 cvox.ChromeVox.documentHasFocus = function() { | 277 cvox.ChromeVox.documentHasFocus = function() { |
| 286 if (!document.hasFocus() || document.hidden) { | 278 if (!document.hasFocus() || document.hidden) { |
| 287 return false; | 279 return false; |
| 288 } | 280 } |
| 289 if (document.activeElement.tagName == 'IFRAME' || | 281 if (document.activeElement.tagName == 'IFRAME' || |
| 290 document.activeElement.tagName == 'WEBVIEW') { | 282 document.activeElement.tagName == 'WEBVIEW') { |
| 291 return false; | 283 return false; |
| 292 } | 284 } |
| 293 return true; | 285 return true; |
| 294 }; | 286 }; |
| OLD | NEW |