OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 PPB_Instance_Private interface implemented by the | 7 * This file defines the PPB_Instance_Private interface implemented by the |
8 * browser and containing pointers to functions available only to trusted plugin | 8 * browser and containing pointers to functions available only to trusted plugin |
9 * instances. | 9 * instances. |
10 */ | 10 */ |
11 | 11 |
12 [generate_thunk] | 12 [generate_thunk] |
13 | 13 |
14 label Chrome { | 14 label Chrome { |
15 M13 = 0.1 | 15 M13 = 0.1 |
16 }; | 16 }; |
17 | 17 |
18 /** | 18 /** |
| 19 * The <code>PP_ExternalPluginResult </code> enum contains result codes from |
| 20 * launching an external plugin. |
| 21 */ |
| 22 [assert_size(4)] |
| 23 enum PP_ExternalPluginResult { |
| 24 /** Successful external plugin call */ |
| 25 PP_EXTERNAL_PLUGIN_OK = 0, |
| 26 /** Unspecified external plugin error */ |
| 27 PP_EXTERNAL_PLUGIN_FAILED = 1, |
| 28 /** Error creating the module */ |
| 29 PP_EXTERNAL_PLUGIN_ERROR_MODULE = 2, |
| 30 /** Error creating and initializing the instance */ |
| 31 PP_EXTERNAL_PLUGIN_ERROR_INSTANCE = 3 |
| 32 }; |
| 33 |
| 34 |
| 35 /** |
19 * The PPB_Instance_Private interface contains functions available only to | 36 * The PPB_Instance_Private interface contains functions available only to |
20 * trusted plugin instances. | 37 * trusted plugin instances. |
21 * | 38 * |
22 */ | 39 */ |
23 interface PPB_Instance_Private { | 40 interface PPB_Instance_Private { |
24 /** | 41 /** |
25 * GetWindowObject is a pointer to a function that determines | 42 * GetWindowObject is a pointer to a function that determines |
26 * the DOM window containing this module instance. | 43 * the DOM window containing this module instance. |
27 * | 44 * |
28 * @param[in] instance A PP_Instance whose WindowObject should be retrieved. | 45 * @param[in] instance A PP_Instance whose WindowObject should be retrieved. |
(...skipping 25 matching lines...) Expand all Loading... |
54 * this to NULL if you don't want exception info; initialize this to a void | 71 * this to NULL if you don't want exception info; initialize this to a void |
55 * exception if want exception info. | 72 * exception if want exception info. |
56 * | 73 * |
57 * @return The result of the script execution, or a "void" var | 74 * @return The result of the script execution, or a "void" var |
58 * if execution failed. | 75 * if execution failed. |
59 */ | 76 */ |
60 PP_Var ExecuteScript([in] PP_Instance instance, | 77 PP_Var ExecuteScript([in] PP_Instance instance, |
61 [in] PP_Var script, | 78 [in] PP_Var script, |
62 [out] PP_Var exception); | 79 [out] PP_Var exception); |
63 }; | 80 }; |
OLD | NEW |