Index: chrome/renderer/resources/extensions/automation_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/automation_custom_bindings.js b/chrome/renderer/resources/extensions/automation_custom_bindings.js |
index 023902cbdc345491286dfb3476e5d5a47cf32e95..0d2812d9d0ad0fd2cbd168ca8c67ecedfe93b4e8 100644 |
--- a/chrome/renderer/resources/extensions/automation_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/automation_custom_bindings.js |
@@ -11,6 +11,8 @@ var automationInternal = |
var eventBindings = require('event_bindings'); |
var Event = eventBindings.Event; |
var lastError = require('lastError'); |
+var schema = |
+ requireNative('automationInternal').GetSchemaAdditions(); |
// TODO(aboxhall): Look into using WeakMap |
var idToAutomationTree = {}; |
@@ -116,3 +118,8 @@ automationInternal.onAccessibilityEvent.addListener(function(data) { |
}); |
exports.binding = automation.generate(); |
+ |
+// Additional bindings adopted from Accessibility. |
+exports.binding.EventType = schema.EventType; |
+exports.binding.RoleType = schema.RoleType; |
+exports.binding.StateType = schema.StateType; |