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 Constants used throughout ChromeVox. | 6 * @fileoverview Constants used throughout ChromeVox. |
7 */ | 7 */ |
8 | 8 |
9 goog.provide('constants'); | 9 goog.provide('constants'); |
10 | 10 |
11 /** | 11 /** |
12 * Possible directions to perform tree traversals. | 12 * Possible directions to perform tree traversals. |
13 * @enum {string} | 13 * @enum {string} |
14 */ | 14 */ |
15 constants.Dir = { | 15 constants.Dir = { |
16 /** Search from left to right. */ | 16 /** Search from left to right. */ |
17 FORWARD: 'forward', | 17 FORWARD: 'forward', |
18 | 18 |
19 /** Search from right to left. */ | 19 /** Search from right to left. */ |
20 BACKWARD: 'backward' | 20 BACKWARD: 'backward' |
21 }; | 21 }; |
| 22 |
| 23 /** |
| 24 * If a node contains more characters than this, it should not be visited during |
| 25 * object navigation. |
| 26 * |
| 27 * This number was taken from group_util.js and is an approximate average of |
| 28 * paragraph length. It's purpose is to prevent overloading tts. |
| 29 * @type {number} |
| 30 * @const |
| 31 */ |
| 32 constants.OBJECT_MAX_CHARCOUNT = 1500; |
OLD | NEW |