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 95924e762c4510540b4d842bbc2383f0a481d5bb..09e55ef8ec00b44582d2dc4a72324607164f91a5 100644 |
--- a/chrome/renderer/resources/extensions/automation/automation_node.js |
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js |
@@ -238,6 +238,8 @@ var GetHtmlAttribute = requireNative('automationInternal').GetHtmlAttribute; |
*/ |
var GetNameFrom = requireNative('automationInternal').GetNameFrom; |
+var GetCustomActions = requireNative('automationInternal').GetCustomActions; |
Devlin
2017/06/14 18:23:10
add closure annotations?
yawano
2017/06/15 10:43:21
Done.
|
+ |
var lastError = require('lastError'); |
var logging = requireNative('logging'); |
var utils = require('utils'); |
@@ -380,6 +382,10 @@ AutomationNodeImpl.prototype = { |
return GetNameFrom(this.treeID, this.id); |
}, |
+ get customActions() { |
+ return GetCustomActions(this.treeID, this.id); |
+ }, |
+ |
doDefault: function() { |
this.performAction_('doDefault'); |
}, |
@@ -407,6 +413,10 @@ AutomationNodeImpl.prototype = { |
this.performAction_('makeVisible'); |
}, |
+ performCustomAction: function(customActionId) { |
+ this.performAction_('customAction', { customActionID: customActionId }); |
+ }, |
+ |
resumeMedia: function() { |
this.performAction_('resumeMedia'); |
}, |
@@ -1107,6 +1117,7 @@ utils.expose(AutomationNode, AutomationNodeImpl, { |
'hitTest', |
'makeVisible', |
'matches', |
+ 'performCustomAction', |
'resumeMedia', |
'setSelection', |
'setSequentialFocusNavigationStartingPoint', |
@@ -1137,6 +1148,7 @@ utils.expose(AutomationNode, AutomationNodeImpl, { |
'root', |
'htmlAttributes', |
'nameFrom', |
+ 'customActions', |
]), |
}); |