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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js

Issue 2479593007: Expose images to accessibility (Closed)
Patch Set: A few more tests rebaselined. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
index 145b2ed19efa0f2acb2ebd431782b6244a02f285..de97c9d5002c5b51bf8818a9d160b1d6d728f08a 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
@@ -276,6 +276,16 @@ CommandHandler.onCommand = function(command) {
pred = AutomationPredicate.formField;
predErrorMsg = 'no_previous_form_field';
break;
+ case 'previousGraphic':
+ dir = Dir.BACKWARD;
+ pred = AutomationPredicate.image;
+ predErrorMsg = 'no_previous_graphic';
+ break;
+ case 'nextGraphic':
+ dir = Dir.FORWARD;
+ pred = AutomationPredicate.image;
+ predErrorMsg = 'no_next_graphic';
+ break;
case 'nextHeading':
dir = Dir.FORWARD;
pred = AutomationPredicate.heading;

Powered by Google App Engine
This is Rietveld 408576698