| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // An object to implement keyboard overlay accessiblity. | 5 // An object to implement keyboard overlay accessiblity. |
| 6 var KeyboardOverlayAccessibilityHelper = { | 6 var KeyboardOverlayAccessibilityHelper = { |
| 7 // Returns true when ChromeVox is loaded and active, false otherwise. | 7 // Returns true when ChromeVox is loaded and active, false otherwise. |
| 8 cvoxIsActive: function() { | 8 cvoxIsActive: function() { |
| 9 return window.cvox && window.cvox.Api.isChromeVoxActive(); | 9 return window.cvox && window.cvox.Api.isChromeVoxActive(); |
| 10 }, | 10 }, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 this.speakShortcut_(keysText, keysToShortcutText[keysText]); | 31 this.speakShortcut_(keysText, keysToShortcutText[keysText]); |
| 32 } | 32 } |
| 33 }, | 33 }, |
| 34 // Speaks given shortcut description. | 34 // Speaks given shortcut description. |
| 35 speakShortcut_: function(keysText, shortcutText) { | 35 speakShortcut_: function(keysText, shortcutText) { |
| 36 keysText = keysText.toLowerCase(); // For correct pronunciation. | 36 keysText = keysText.toLowerCase(); // For correct pronunciation. |
| 37 cvox.Api.speak(keysText, 1, {}); | 37 cvox.Api.speak(keysText, 1, {}); |
| 38 cvox.Api.speak(shortcutText, 1, {}); | 38 cvox.Api.speak(shortcutText, 1, {}); |
| 39 }, | 39 }, |
| 40 }; | 40 }; |
| OLD | NEW |