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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js

Issue 2066633002: Bind key for toggleBrailleCaptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox/background/keymaps/next_keymap.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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');
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 case 'reportIssue': 784 case 'reportIssue':
785 var url = Background.ISSUE_URL; 785 var url = Background.ISSUE_URL;
786 var description = {}; 786 var description = {};
787 description['Mode'] = this.mode_; 787 description['Mode'] = this.mode_;
788 description['Version'] = chrome.app.getDetails().version; 788 description['Version'] = chrome.app.getDetails().version;
789 description['Reproduction Steps'] = '%0a1.%0a2.%0a3.'; 789 description['Reproduction Steps'] = '%0a1.%0a2.%0a3.';
790 for (var key in description) 790 for (var key in description)
791 url += key + ':%20' + description[key] + '%0a'; 791 url += key + ':%20' + description[key] + '%0a';
792 chrome.tabs.create({url: url}); 792 chrome.tabs.create({url: url});
793 return false; 793 return false;
794 case 'toggleBrailleCaptions':
795 cvox.BrailleCaptionsBackground.setActive(
796 !cvox.BrailleCaptionsBackground.isEnabled());
797 return false;
794 default: 798 default:
795 return true; 799 return true;
796 } 800 }
797 801
798 if (pred) { 802 if (pred) {
799 var bound = current.getBound(dir).node; 803 var bound = current.getBound(dir).node;
800 if (bound) { 804 if (bound) {
801 var node = AutomationUtil.findNextNode( 805 var node = AutomationUtil.findNextNode(
802 bound, dir, pred, {skipInitialAncestry: true}); 806 bound, dir, pred, {skipInitialAncestry: true});
803 807
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&') 1185 return glob.replace(/[.+^$(){}|[\]\\]/g, '\\$&')
1182 .replace(/\*/g, '.*') 1186 .replace(/\*/g, '.*')
1183 .replace(/\?/g, '.'); 1187 .replace(/\?/g, '.');
1184 }).join('|') + ')$'); 1188 }).join('|') + ')$');
1185 }; 1189 };
1186 1190
1187 /** @type {Background} */ 1191 /** @type {Background} */
1188 global.backgroundObj = new Background(); 1192 global.backgroundObj = new Background();
1189 1193
1190 }); // goog.scope 1194 }); // goog.scope
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox/background/keymaps/next_keymap.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698