| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPP_MessageHandler</code> interface that plugins | 7 * This file defines the <code>PPP_MessageHandler</code> interface that plugins |
| 8 * can implement and register using PPB_Messaging::RegisterMessageHandler in | 8 * can implement and register using PPB_Messaging::RegisterMessageHandler in |
| 9 * order to handle messages sent from JavaScript via postMessage() or | 9 * order to handle messages sent from JavaScript via postMessage() or |
| 10 * postMessageAndAwaitResponse(). | 10 * postMessageAndAwaitResponse(). |
| 11 */ | 11 */ |
| 12 | 12 |
| 13 label Chrome { | 13 label Chrome { |
| 14 [channel=dev] M39 = 0.2 | 14 M39 = 0.2 |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * The <code>PPP_MessageHandler</code> interface is implemented by the plugin | 18 * The <code>PPP_MessageHandler</code> interface is implemented by the plugin |
| 19 * if the plugin wants to receive messages from a thread other than the main | 19 * if the plugin wants to receive messages from a thread other than the main |
| 20 * Pepper thread, or if the plugin wants to handle blocking messages which | 20 * Pepper thread, or if the plugin wants to handle blocking messages which |
| 21 * JavaScript may send via postMessageAndAwaitResponse(). | 21 * JavaScript may send via postMessageAndAwaitResponse(). |
| 22 * | 22 * |
| 23 * This interface struct should not be returned by PPP_GetInterface; instead it | 23 * This interface struct should not be returned by PPP_GetInterface; instead it |
| 24 * must be passed as a parameter to PPB_Messaging::RegisterMessageHandler. | 24 * must be passed as a parameter to PPB_Messaging::RegisterMessageHandler. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 * and <code>user_data</code>. | 68 * and <code>user_data</code>. |
| 69 * | 69 * |
| 70 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 70 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 71 * of a module. | 71 * of a module. |
| 72 * @param[in] user_data is the same pointer which was provided by a call to | 72 * @param[in] user_data is the same pointer which was provided by a call to |
| 73 * RegisterMessageHandler. | 73 * RegisterMessageHandler. |
| 74 */ | 74 */ |
| 75 void Destroy([in] PP_Instance instance, [inout] mem_t user_data); | 75 void Destroy([in] PP_Instance instance, [inout] mem_t user_data); |
| 76 }; | 76 }; |
| 77 | 77 |
| OLD | NEW |