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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« 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