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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/interface/braille_interface.js

Issue 1302763002: Add tests for braille commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@js2gtesterr
Patch Set: Document gn template args, rename extra_gen_files to gen_include_files Created 5 years, 3 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
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 Defines a Braille interface. 6 * @fileoverview Defines a Braille interface.
7 * 7 *
8 * All Braille engines in ChromeVox conform to this interface. 8 * All Braille engines in ChromeVox conform to this interface.
9 * 9 *
10 */ 10 */
11 11
12 goog.provide('cvox.BrailleInterface'); 12 goog.provide('cvox.BrailleInterface');
13 13
14 goog.require('cvox.BrailleKeyCommand'); 14 goog.require('cvox.BrailleKeyCommand');
15 goog.require('cvox.BrailleKeyEvent'); 15 goog.require('cvox.BrailleKeyEvent');
16 goog.require('cvox.NavBraille'); 16 goog.require('cvox.NavBraille');
17 17
18 /** 18 /**
19 * @interface 19 * @interface
20 */ 20 */
21 cvox.BrailleInterface = function() { }; 21 cvox.BrailleInterface = function() { };
22 22
23 /** 23 /**
24 * Sends the given params to the Braille display for output. 24 * Sends the given params to the Braille display for output.
25 * @param {!cvox.NavBraille} params Parameters to send to the 25 * @param {!cvox.NavBraille} params Parameters to send to the
26 * platform braille service. 26 * platform braille service.
27 */ 27 */
28 cvox.BrailleInterface.prototype.write = 28 cvox.BrailleInterface.prototype.write =
29 function(params) { }; 29 function(params) { };
30
31 /**
32 * Sets a callback for handling braille keyboard commands.
33 *
34 * @param {function(!cvox.BrailleKeyEvent, cvox.NavBraille)} func The function
35 * to be called when the user invokes a keyboard command on the braille
36 * display. The first parameter is the key event. The second parameter is
37 * the content that was present on the display when the key command
38 * was invoked, if available.
39 */
40 cvox.BrailleInterface.prototype.setCommandListener =
41 function(func) { };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698