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

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

Issue 2703663002: Display images in multiline Braille (Closed)
Patch Set: Final feedback Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
index 04f3bd5a80087cfb5f6bb110f4dd3ea3aeda0f47..2208f0bb661352b97e338298f7e1156b41cec98d 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
@@ -486,4 +486,14 @@ AutomationPredicate.makeHeadingPredicate = function(level) {
};
};
+/**
+ * Matches against nodes that we may be able to retrieve image data from.
+ * @param {!AutomationNode} node
+ * @return {boolean}
+ */
+AutomationPredicate.supportsImageData = AutomationPredicate.roles([
+ Role.CANVAS,
+ Role.IMAGE,
+ Role.VIDEO]);
+
}); // goog.scope

Powered by Google App Engine
This is Rietveld 408576698