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

Unified Diff: ppapi/api/dev/ppb_testing_dev.idl

Issue 8920005: Add TestingInstance::EvalScript method which posts a message that the test page can eval(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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: ppapi/api/dev/ppb_testing_dev.idl
===================================================================
--- ppapi/api/dev/ppb_testing_dev.idl (revision 114053)
+++ ppapi/api/dev/ppb_testing_dev.idl (working copy)
@@ -11,7 +11,8 @@
label Chrome {
M14 = 0.7,
- M15 = 0.8
+ M15 = 0.8,
+ M18 = 0.9
};
interface PPB_Testing_Dev {
@@ -102,4 +103,27 @@
[version=0.8]
void SimulateInputEvent([in] PP_Instance instance,
[in] PP_Resource input_event);
+
+ /**
+ * ExecuteScript is a pointer to a function that executes the given
+ * script in the context of the frame containing the module.
+ *
+ * The exception, if any, will be returned in *exception. As with the PPB_Var
dmichael (off chromium) 2011/12/13 23:40:55 I'm not sure what this has to do with the PPB_Var
bbudge 2011/12/14 03:00:05 Done.
+ * interface, the exception parameter, if non-NULL, must be initialized
+ * to a void exception or the function will immediately return. On success,
+ * the exception parameter will be set to a "void" var. On failure, the
+ * return value will be a "void" var.
+ *
+ * @param[in] script A string containing the JavaScript to execute.
+ * @param[in/out] exception PP_Var containing the exception. Initialize
+ * this to NULL if you don't want exception info; initialize this to a void
+ * exception if want exception info.
+ *
+ * @return The result of the script execution, or a "void" var
+ * if execution failed.
+ */
+ [version=0.9]
+ PP_Var ExecuteScript([in] PP_Instance instance,
+ [in] PP_Var script,
+ [out] PP_Var exception);
};

Powered by Google App Engine
This is Rietveld 408576698