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

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

Issue 2557713003: Don't consider large static text nodes as objects (Closed)
Patch Set: Don't consider large static text ndoes as objects Created 4 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js ('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 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;
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698