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

Side by Side Diff: ppapi/c/trusted/ppb_instance_trusted.h

Issue 6871040: Rename Instance_Trusted to Instance_Private, wire it up in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up based on review comments. Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/ppp_instance_private.h ('k') | ppapi/c/trusted/ppp_instance_trusted.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5 #ifndef PPAPI_C_TRUSTED_PPB_INSTANCE_TRUSTED_H_
6 #define PPAPI_C_TRUSTED_PPB_INSTANCE_TRUSTED_H_
7
8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_var.h"
10
11 #define PPB_INSTANCE_TRUSTED_INTERFACE "PPB_Instance_Trusted;0.1"
12
13 /**
14 * @file
15 * This file defines the PPB_Instance_Trusted interface implemented by the
16 * browser and containing pointers to functions available only to trusted plugin
17 * instances.
18 *
19 * @addtogroup Interfaces
20 * @{
21 */
22
23 /**
24 * The PPB_Instance_Trusted interface contains functions available only to
25 * trusted plugin instances.
26 *
27 */
28 struct PPB_Instance_Trusted {
29 /**
30 * GetWindowObject is a pointer to a function that determines
31 * the DOM window containing this module instance.
32 *
33 * @param[in] instance A PP_Instance whose WindowObject should be retrieved.
34 * @return A PP_Var containing window object on success.
35 */
36 struct PP_Var (*GetWindowObject)(PP_Instance instance);
37
38 /**
39 * GetOwnerElementObject is a pointer to a function that determines
40 * the DOM element containing this module instance.
41 *
42 * @param[in] instance A PP_Instance whose WindowObject should be retrieved.
43 * @return A PP_Var containing DOM element on success.
44 */
45 struct PP_Var (*GetOwnerElementObject)(PP_Instance instance);
46
47 /**
48 * ExecuteScript is a pointer to a function that executes the given
49 * script in the context of the frame containing the module.
50 *
51 * The exception, if any, will be returned in *exception. As with the PPB_Var
52 * interface, the exception parameter, if non-NULL, must be initialized
53 * to a void exception or the function will immediately return. On success,
54 * the exception parameter will be set to a "void" var. On failure, the
55 * return value will be a "void" var.
56 *
57 * @param[in] script A string containing the JavaScript to execute.
58 * @param[in/out] exception PP_Var containing the exception. Initialize
59 * this to NULL if you don't want exception info; initialize this to a void
60 * exception if want exception info.
61 *
62 * @return The result of the script execution, or a "void" var
63 * if execution failed.
64 */
65 struct PP_Var (*ExecuteScript)(PP_Instance instance,
66 struct PP_Var script,
67 struct PP_Var* exception);
68 };
69 /**
70 * @}
71 */
72
73 #endif /* PPAPI_C_TRUSTED_PPB_INSTANCE_TRUSTED_H_ */
74
OLDNEW
« no previous file with comments | « ppapi/c/private/ppp_instance_private.h ('k') | ppapi/c/trusted/ppp_instance_trusted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698