Add human readable programmatic enum name/values to chrome.automation.
commit68b571ee343e6247ee14dd7f6efffdd1f7bbf5c2
authordtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 30 May 2014 07:10:50 +0000 (30 07:10 +0000)
committerdtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 30 May 2014 07:10:50 +0000 (30 07:10 +0000)
treea035c1c87d5968d1258b6e6b5f8f7f08046ee636
parent95e517c1f416bddb056e3bcc3c3f7f60cd7a66a4
Add human readable programmatic enum name/values to chrome.automation.

This adds three new bindings to the automation API:
chrome.automation.Event
chrome.automation.Role
chrome.automation.State

Each is an object mapping an enum name to its value. Currently, this is an identity mapping. However, with the way the cl constructs the bindings, we could in the future substitute with integer values (and eliminate the stringification on either end of our extension/browser IPC).

BUG=308003003

Review URL: https://codereview.chromium.org/304293002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273747 0039d316-1c4b-4281-b951-d872f2087c98
chrome/renderer/extensions/automation_internal_custom_bindings.cc
chrome/renderer/extensions/automation_internal_custom_bindings.h
chrome/renderer/resources/extensions/automation_custom_bindings.js
chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js
chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
chrome/test/data/extensions/api_test/automation/tests/desktop/desktop.js
chrome/test/data/extensions/api_test/automation/tests/tabs/actions.js
chrome/test/data/extensions/api_test/automation/tests/tabs/common.js
chrome/test/data/extensions/api_test/automation/tests/tabs/events.js
chrome/test/data/extensions/api_test/automation/tests/tabs/location.js
chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js