cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / chromevox / walkers / character_walker.js
blob4dfcd915de02754e3744d1b7252fe4fa6c7cffa8
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
3 // found in the LICENSE file.
5 /**
6 * @fileoverview A class for walking one character at a time.
7 */
10 goog.provide('cvox.CharacterWalker');
12 goog.require('cvox.AbstractSelectionWalker');
13 goog.require('cvox.TraverseContent');
15 /**
16 * @constructor
17 * @extends {cvox.AbstractSelectionWalker}
19 cvox.CharacterWalker = function() {
20 cvox.AbstractSelectionWalker.call(this);
21 this.grain = cvox.TraverseContent.kCharacter;
23 goog.inherits(cvox.CharacterWalker, cvox.AbstractSelectionWalker);
25 /**
26 * @override
28 cvox.CharacterWalker.prototype.getDescription = function(prevSel, sel) {
29 var desc = goog.base(this, 'getDescription', prevSel, sel);
30 desc.forEach(function(item) {
31 if (!item.personality) {
32 item.personality = {};
34 item.personality['phoneticCharacters'] = true;
35 });
36 return desc;
39 /**
40 * @override
42 cvox.CharacterWalker.prototype.getGranularityMsg = function() {
43 return cvox.ChromeVox.msgs.getMsg('character_granularity');