diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-08 16:22:31 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-08 16:22:31 +0000 |
commit | 87258a289e1d0732af8716d0aa5e910fc8c955be (patch) | |
tree | d654d37c6d81a85f1f32e8c843bbc8d6cbd63832 /chrome_frame/chrome_frame_npapi.h | |
parent | 4cfc1d9243eaf01a3b736fa13f55b7400a891fb4 (diff) | |
download | chromium_src-87258a289e1d0732af8716d0aa5e910fc8c955be.zip chromium_src-87258a289e1d0732af8716d0aa5e910fc8c955be.tar.gz chromium_src-87258a289e1d0732af8716d0aa5e910fc8c955be.tar.bz2 |
Allowing JS to set/reset extension automation, this makes for more
flexible testing when you want to automate different sets of functions
in different tests. Now instead of needing to destroy your CF and
then create a new one with a different automation functions attribute,
you can just call the function to reset on the existing one, then call
it again to enable a different set.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/375014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_npapi.h')
-rw-r--r-- | chrome_frame/chrome_frame_npapi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_npapi.h b/chrome_frame/chrome_frame_npapi.h index df35ce3..1d35b4c 100644 --- a/chrome_frame/chrome_frame_npapi.h +++ b/chrome_frame/chrome_frame_npapi.h @@ -206,6 +206,10 @@ END_MSG_MAP() bool loadExtension(NPObject* npobject, const NPVariant* args, uint32_t arg_count, NPVariant* result); + // This method is only available when the control is in privileged mode. + bool enableExtensionAutomation(NPObject* npobject, const NPVariant* args, + uint32_t arg_count, NPVariant* result); + // Pointers to method implementations. static PluginMethod plugin_methods_[]; |