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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/api_implementation.js

Issue 1319993002: Remove unused earcons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simpler_input_fix
Patch Set: Created 5 years, 3 months 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
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 Implentation of ChromeVox's public API. 6 * @fileoverview Implentation of ChromeVox's public API.
7 * 7 *
8 */ 8 */
9 9
10 goog.provide('cvox.ApiImplementation'); 10 goog.provide('cvox.ApiImplementation');
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 cvox.ApiImplementation.stop = function() { 189 cvox.ApiImplementation.stop = function() {
190 if (cvox.ChromeVox.isActive) { 190 if (cvox.ChromeVox.isActive) {
191 cvox.ChromeVox.tts.stop(); 191 cvox.ChromeVox.tts.stop();
192 } 192 }
193 }; 193 };
194 194
195 /** 195 /**
196 * Plays the specified earcon sound. 196 * Plays the specified earcon sound.
197 * 197 *
198 * @param {string} earcon An earcon name. 198 * @param {string} earcon An earcon name.
199 * Valid names are:
200 * ALERT_MODAL
201 * ALERT_NONMODAL
202 * BULLET
203 * BUSY_PROGRESS_LOOP
204 * BUSY_WORKING_LOOP
205 * BUTTON
206 * CHECK_OFF
207 * CHECK_ON
208 * COLLAPSED
209 * EDITABLE_TEXT
210 * ELLIPSIS
211 * EXPANDED
212 * FONT_CHANGE
213 * INVALID_KEYPRESS
214 * LINK
215 * LISTBOX
216 * LIST_ITEM
217 * NEW_MAIL
218 * OBJECT_CLOSE
219 * OBJECT_DELETE
220 * OBJECT_DESELECT
221 * OBJECT_OPEN
222 * OBJECT_SELECT
223 * PARAGRAPH_BREAK
224 * SEARCH_HIT
225 * SEARCH_MISS
226 * SECTION
227 * TASK_SUCCESS
228 * WRAP
229 * WRAP_EDGE
230 * This list may expand over time.
231 */ 199 */
232 cvox.ApiImplementation.playEarcon = function(earcon) { 200 cvox.ApiImplementation.playEarcon = function(earcon) {
233 if (cvox.ChromeVox.isActive) { 201 if (cvox.ChromeVox.isActive) {
234 cvox.ChromeVox.earcons.playEarconByName(earcon); 202 cvox.ChromeVox.earcons.playEarconByName(earcon);
235 } 203 }
236 }; 204 };
237 205
238 /** 206 /**
239 * Synchronizes ChromeVox's internal cursor to a node by id. 207 * Synchronizes ChromeVox's internal cursor to a node by id.
240 * 208 *
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 * @param {...string} constraints Additional constraints. 400 * @param {...string} constraints Additional constraints.
433 */ 401 */
434 cvox.ApiImplementation.Math.defineRule = 402 cvox.ApiImplementation.Math.defineRule =
435 function(name, dynamic, action, prec, constraints) { 403 function(name, dynamic, action, prec, constraints) {
436 var mathStore = cvox.MathmlStore.getInstance(); 404 var mathStore = cvox.MathmlStore.getInstance();
437 var constraintList = Array.prototype.slice.call(arguments, 4); 405 var constraintList = Array.prototype.slice.call(arguments, 4);
438 var args = [name, dynamic, action, prec].concat(constraintList); 406 var args = [name, dynamic, action, prec].concat(constraintList);
439 407
440 mathStore.defineRule.apply(mathStore, args); 408 mathStore.defineRule.apply(mathStore, args);
441 }; 409 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698