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

Unified Diff: ppapi/c/ppp_message_handler.h

Issue 564573002: PPAPI: Make PPP_MessageHandler work in PNaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 6 years, 3 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
« no previous file with comments | « ppapi/c/ppb_messaging.h ('k') | ppapi/generators/idl_c_proto.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppp_message_handler.h
diff --git a/ppapi/c/ppp_message_handler.h b/ppapi/c/ppp_message_handler.h
index 8032378a92b4f631027a93fe83c3a3179262482e..2b1a0dbddd17a7a3da38f79785583eaea8bc8928 100644
--- a/ppapi/c/ppp_message_handler.h
+++ b/ppapi/c/ppp_message_handler.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppp_message_handler.idl modified Tue Jun 3 16:50:26 2014. */
+/* From ppp_message_handler.idl modified Wed Sep 10 17:04:21 2014. */
#ifndef PPAPI_C_PPP_MESSAGE_HANDLER_H_
#define PPAPI_C_PPP_MESSAGE_HANDLER_H_
@@ -36,7 +36,7 @@
* This interface struct should not be returned by PPP_GetInterface; instead it
* must be passed as a parameter to PPB_Messaging::RegisterMessageHandler.
*/
-struct PPP_MessageHandler_0_1 {
+struct PPP_MessageHandler_0_2 { /* dev */
/**
* Invoked as a result of JavaScript invoking postMessage() on the plugin's
* DOM element.
@@ -50,7 +50,7 @@ struct PPP_MessageHandler_0_1 {
*/
void (*HandleMessage)(PP_Instance instance,
void* user_data,
- struct PP_Var message);
+ const struct PP_Var* message);
/**
* Invoked as a result of JavaScript invoking postMessageAndAwaitResponse()
* on the plugin's DOM element.
@@ -61,12 +61,14 @@ struct PPP_MessageHandler_0_1 {
* RegisterMessageHandler.
* @param[in] message is a copy of the parameter that JavaScript provided
* to postMessageAndAwaitResponse.
- * @return will be copied to a JavaScript object which is returned as
- * the result of postMessageAndAwaitResponse to the invoking JavaScript.
+ * @param[out] response will be copied to a JavaScript object which is
+ * returned as the result of postMessageAndAwaitResponse to the invoking
+ *
*/
- struct PP_Var (*HandleBlockingMessage)(PP_Instance instance,
- void* user_data,
- struct PP_Var message);
+ void (*HandleBlockingMessage)(PP_Instance instance,
+ void* user_data,
+ const struct PP_Var* message,
+ struct PP_Var* response);
/**
* Invoked when the handler object is no longer needed. After this, no more
* calls will be made which pass this same value for <code>instance</code>
« no previous file with comments | « ppapi/c/ppb_messaging.h ('k') | ppapi/generators/idl_c_proto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698