| OLD | NEW |
| 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 Base class for implementing earcons. | 6 * @fileoverview Base class for implementing earcons. |
| 7 * | 7 * |
| 8 * When adding earcons, please add them to getEarconName and getEarconId. | 8 * When adding earcons, please add them to getEarconName and getEarconId. |
| 9 * | 9 * |
| 10 */ | 10 */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 LIST_ITEM: 'list_item', | 30 LIST_ITEM: 'list_item', |
| 31 LONG_DESC: 'long_desc', | 31 LONG_DESC: 'long_desc', |
| 32 MATH: 'math', | 32 MATH: 'math', |
| 33 OBJECT_CLOSE: 'object_close', | 33 OBJECT_CLOSE: 'object_close', |
| 34 OBJECT_ENTER: 'object_enter', | 34 OBJECT_ENTER: 'object_enter', |
| 35 OBJECT_EXIT: 'object_exit', | 35 OBJECT_EXIT: 'object_exit', |
| 36 OBJECT_OPEN: 'object_open', | 36 OBJECT_OPEN: 'object_open', |
| 37 OBJECT_SELECT: 'object_select', | 37 OBJECT_SELECT: 'object_select', |
| 38 PAGE_FINISH_LOADING: 'page_finish_loading', | 38 PAGE_FINISH_LOADING: 'page_finish_loading', |
| 39 PAGE_START_LOADING: 'page_start_loading', | 39 PAGE_START_LOADING: 'page_start_loading', |
| 40 POP_UP_BUTTON: 'pop_up_button', |
| 40 RECOVER_FOCUS: 'recover_focus', | 41 RECOVER_FOCUS: 'recover_focus', |
| 41 SELECTION: 'selection', | 42 SELECTION: 'selection', |
| 42 SELECTION_REVERSE: 'selection_reverse', | 43 SELECTION_REVERSE: 'selection_reverse', |
| 43 SKIP: 'skip', | 44 SKIP: 'skip', |
| 45 SLIDER: 'slider', |
| 44 WRAP: 'wrap', | 46 WRAP: 'wrap', |
| 45 WRAP_EDGE: 'wrap_edge', | 47 WRAP_EDGE: 'wrap_edge', |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 | 50 |
| 49 /** | 51 /** |
| 50 * @constructor | 52 * @constructor |
| 51 */ | 53 */ |
| 52 cvox.AbstractEarcons = function() { | 54 cvox.AbstractEarcons = function() { |
| 53 /** | 55 /** |
| (...skipping 23 matching lines...) Expand all Loading... |
| 77 | 79 |
| 78 | 80 |
| 79 /** | 81 /** |
| 80 * Toggles earcons on or off. | 82 * Toggles earcons on or off. |
| 81 * @return {boolean} True if earcons are now enabled; false otherwise. | 83 * @return {boolean} True if earcons are now enabled; false otherwise. |
| 82 */ | 84 */ |
| 83 cvox.AbstractEarcons.prototype.toggle = function() { | 85 cvox.AbstractEarcons.prototype.toggle = function() { |
| 84 this.enabled = !this.enabled; | 86 this.enabled = !this.enabled; |
| 85 return this.enabled; | 87 return this.enabled; |
| 86 }; | 88 }; |
| OLD | NEW |