OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |
6 #define PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |
7 | 7 |
8 /** | 8 /** |
9 * @file | 9 * @file |
10 * Defines the API ... | 10 * Defines the API ... |
(...skipping 10 matching lines...) Expand all Loading... |
21 class VarPrivate; | 21 class VarPrivate; |
22 | 22 |
23 class InstancePrivate : public Instance { | 23 class InstancePrivate : public Instance { |
24 public: | 24 public: |
25 explicit InstancePrivate(PP_Instance instance); | 25 explicit InstancePrivate(PP_Instance instance); |
26 virtual ~InstancePrivate(); | 26 virtual ~InstancePrivate(); |
27 | 27 |
28 // @{ | 28 // @{ |
29 /// @name PPP_Instance_Private methods for the plugin to override: | 29 /// @name PPP_Instance_Private methods for the plugin to override: |
30 | 30 |
31 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING | |
32 /// See PPP_Instance_Private.GetInstanceObject. | 31 /// See PPP_Instance_Private.GetInstanceObject. |
33 virtual Var GetInstanceObject(); | 32 virtual Var GetInstanceObject(); |
34 #endif | |
35 | 33 |
36 // @} | 34 // @} |
37 | 35 |
38 // @{ | 36 // @{ |
39 /// @name PPB_Instance_Private methods for querying the browser: | 37 /// @name PPB_Instance_Private methods for querying the browser: |
40 | 38 |
41 /// See PPB_Instance_Private.GetWindowObject. | 39 /// See PPB_Instance_Private.GetWindowObject. |
42 VarPrivate GetWindowObject(); | 40 VarPrivate GetWindowObject(); |
43 | 41 |
44 /// See PPB_Instance_Private.GetOwnerElementObject. | 42 /// See PPB_Instance_Private.GetOwnerElementObject. |
45 VarPrivate GetOwnerElementObject(); | 43 VarPrivate GetOwnerElementObject(); |
46 | 44 |
47 /// See PPB_Instance.ExecuteScript. | 45 /// See PPB_Instance.ExecuteScript. |
48 VarPrivate ExecuteScript(const Var& script, Var* exception = NULL); | 46 VarPrivate ExecuteScript(const Var& script, Var* exception = NULL); |
49 | 47 |
50 // @} | 48 // @} |
51 }; | 49 }; |
52 | 50 |
53 } // namespace pp | 51 } // namespace pp |
54 | 52 |
55 /** | 53 /** |
56 * @} | 54 * @} |
57 * End addtogroup CPP | 55 * End addtogroup CPP |
58 */ | 56 */ |
59 #endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ | 57 #endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |
OLD | NEW |