Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/constants.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/constants.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/constants.js |
index 238980fdf89e3cf4b32dc789893b7342ee3ad4a8..2fac77302ba170cfbba883c212387a3aee1ca6eb 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/constants.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/constants.js |
@@ -19,3 +19,14 @@ constants.Dir = { |
/** Search from right to left. */ |
BACKWARD: 'backward' |
}; |
+ |
+/** |
+ * If a node contains more characters than this, it should not be visited during |
+ * object navigation. |
+ * |
+ * This number was taken from group_util.js and is an approximate average of |
+ * paragraph length. It's purpose is to prevent overloading tts. |
+ * @type {number} |
+ * @const |
+ */ |
+constants.OBJECT_MAX_CHARCOUNT = 1500; |