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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 2522543004: Add support for retrieving image thumbnails as part of the accessibility tree. (Closed)
Patch Set: Clarified maxSize 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/renderer/resources/extensions/automation/automation_node.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
index 2da36e205a7d8ea70ee413dc6167304c65836afb..8bcaf3b93950e93a6af993310b7d8896bac6fe81 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -367,6 +367,12 @@ AutomationNodeImpl.prototype = {
this.performAction_('focus');
},
+ getImageData: function(maxWidth, maxHeight) {
+ this.performAction_('getImageData',
+ { maxWidth: maxWidth,
+ maxHeight: maxHeight });
+ },
+
makeVisible: function() {
this.performAction_('makeVisible');
},
@@ -657,6 +663,7 @@ var stringAttributes = [
'dropeffect',
'help',
'htmlTag',
+ 'imageDataUrl',
'language',
'liveRelevant',
'liveStatus',
@@ -1061,6 +1068,7 @@ utils.expose(AutomationNode, AutomationNodeImpl, {
'find',
'findAll',
'focus',
+ 'getImageData',
'makeVisible',
'matches',
'setSelection',

Powered by Google App Engine
This is Rietveld 408576698