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

Unified Diff: chrome/renderer/resources/extensions/automation_custom_bindings.js

Issue 304293002: Add human readable programmatic enum name/values to chrome.automation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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/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;

Powered by Google App Engine
This is Rietveld 408576698