Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: chrome/browser/resources/chromeos/keyboard_overlay_accessibility_helper.js

Issue 8687012: Moved ChromeOS-specific resources from chrome/browser/resources to chrome/browser/resources/chrom... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/keyboard_overlay.js ('k') | chrome/browser/resources/chromeos/keyboard_overlay_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698