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 Interface definition for a class which evaluates speech rules. | 6 * @fileoverview Interface definition for a class which evaluates speech rules. |
7 * | 7 * |
8 * A speech rule evaluator knows how to generate a description given a node and | 8 * A speech rule evaluator knows how to generate a description given a node and |
9 * a speech rule. | 9 * a speech rule. |
10 */ | 10 */ |
11 | 11 |
12 goog.provide('cvox.SpeechRuleEvaluator'); | 12 goog.provide('cvox.SpeechRuleEvaluator'); |
13 | 13 |
14 goog.require('cvox.SpeechRule'); | 14 goog.require('cvox.SpeechRule'); |
15 | 15 |
16 | 16 |
17 /** | 17 /** |
18 * @interface | 18 * @interface |
19 */ | 19 */ |
20 cvox.SpeechRuleEvaluator = goog.abstractMethod; | 20 cvox.SpeechRuleEvaluator = goog.abstractMethod; |
21 | 21 |
22 | 22 |
23 /** | 23 /** |
24 * Default evaluation of a node if no speech rule is applicable. | 24 * Default evaluation of a node if no speech rule is applicable. |
25 * @param {!Node} node The target node (or root of subtree). | 25 * @param {!Node} node The target node (or root of subtree). |
26 * @return {!Array.<cvox.NavDescription>} The resulting description. | 26 * @return {!Array<cvox.NavDescription>} The resulting description. |
27 */ | 27 */ |
28 cvox.SpeechRuleEvaluator.prototype.evaluateDefault = goog.abstractMethod; | 28 cvox.SpeechRuleEvaluator.prototype.evaluateDefault = goog.abstractMethod; |
OLD | NEW |