| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ChromeVox commands. | 6 * @fileoverview ChromeVox commands. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 goog.provide('CommandHandler'); | 9 goog.provide('CommandHandler'); |
| 10 | 10 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 case 'nextFormField': | 269 case 'nextFormField': |
| 270 dir = Dir.FORWARD; | 270 dir = Dir.FORWARD; |
| 271 pred = AutomationPredicate.formField; | 271 pred = AutomationPredicate.formField; |
| 272 predErrorMsg = 'no_next_form_field'; | 272 predErrorMsg = 'no_next_form_field'; |
| 273 break; | 273 break; |
| 274 case 'previousFormField': | 274 case 'previousFormField': |
| 275 dir = Dir.BACKWARD; | 275 dir = Dir.BACKWARD; |
| 276 pred = AutomationPredicate.formField; | 276 pred = AutomationPredicate.formField; |
| 277 predErrorMsg = 'no_previous_form_field'; | 277 predErrorMsg = 'no_previous_form_field'; |
| 278 break; | 278 break; |
| 279 case 'previousGraphic': |
| 280 dir = Dir.BACKWARD; |
| 281 pred = AutomationPredicate.image; |
| 282 predErrorMsg = 'no_previous_graphic'; |
| 283 break; |
| 284 case 'nextGraphic': |
| 285 dir = Dir.FORWARD; |
| 286 pred = AutomationPredicate.image; |
| 287 predErrorMsg = 'no_next_graphic'; |
| 288 break; |
| 279 case 'nextHeading': | 289 case 'nextHeading': |
| 280 dir = Dir.FORWARD; | 290 dir = Dir.FORWARD; |
| 281 pred = AutomationPredicate.heading; | 291 pred = AutomationPredicate.heading; |
| 282 predErrorMsg = 'no_next_heading'; | 292 predErrorMsg = 'no_next_heading'; |
| 283 break; | 293 break; |
| 284 case 'nextHeading1': | 294 case 'nextHeading1': |
| 285 dir = Dir.FORWARD; | 295 dir = Dir.FORWARD; |
| 286 pred = AutomationPredicate.makeHeadingPredicate(1); | 296 pred = AutomationPredicate.makeHeadingPredicate(1); |
| 287 predErrorMsg = 'no_next_heading_1'; | 297 predErrorMsg = 'no_next_heading_1'; |
| 288 break; | 298 break; |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 break; | 747 break; |
| 738 } | 748 } |
| 739 if (announcement) { | 749 if (announcement) { |
| 740 cvox.ChromeVox.tts.speak( | 750 cvox.ChromeVox.tts.speak( |
| 741 announcement, cvox.QueueMode.FLUSH, | 751 announcement, cvox.QueueMode.FLUSH, |
| 742 cvox.AbstractTts.PERSONALITY_ANNOTATION); | 752 cvox.AbstractTts.PERSONALITY_ANNOTATION); |
| 743 } | 753 } |
| 744 }; | 754 }; |
| 745 | 755 |
| 746 }); // goog.scope | 756 }); // goog.scope |
| OLD | NEW |