blob: 6256387fd5d2c62123d2c1d8f56b08dbce978a38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A class for walking one word at a time.
*/
goog.provide('cvox.WordWalker');
goog.require('cvox.AbstractSelectionWalker');
goog.require('cvox.TraverseContent');
/**
* @constructor
* @extends {cvox.AbstractSelectionWalker}
*/
cvox.WordWalker = function() {
cvox.AbstractSelectionWalker.call(this);
this.grain = cvox.TraverseContent.kWord;
};
goog.inherits(cvox.WordWalker, cvox.AbstractSelectionWalker);
/**
* @override
*/
cvox.WordWalker.prototype.getGranularityMsg = function() {
return Msgs.getMsg('word_granularity');
};
|