OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_INSTANCE_H_ | 5 #ifndef PPAPI_CPP_INSTANCE_H_ |
6 #define PPAPI_CPP_INSTANCE_H_ | 6 #define PPAPI_CPP_INSTANCE_H_ |
7 | 7 |
8 /** | 8 /** |
9 * @file | 9 * @file |
10 * Defines the API ... | 10 * Defines the API ... |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool IsFullFrame(); | 95 bool IsFullFrame(); |
96 | 96 |
97 /** See PPB_Instance.ExecuteScript. */ | 97 /** See PPB_Instance.ExecuteScript. */ |
98 Var ExecuteScript(const Var& script, Var* exception = NULL); | 98 Var ExecuteScript(const Var& script, Var* exception = NULL); |
99 | 99 |
100 // These functions use the PPP_Messaging and PPB_Messaging interfaces, so that | 100 // These functions use the PPP_Messaging and PPB_Messaging interfaces, so that |
101 // messaging can be done conveniently for a pp::Instance without using a | 101 // messaging can be done conveniently for a pp::Instance without using a |
102 // separate C++ class. | 102 // separate C++ class. |
103 | 103 |
104 /** See PPP_Messaging.HandleMessage. */ | 104 /** See PPP_Messaging.HandleMessage. */ |
105 virtual void HandleMessage(const Var& message_data); | 105 virtual void HandleMessage(const Var& message); |
106 /** See PPB_Messaging.PostMessage. */ | 106 /** See PPB_Messaging.PostMessage. */ |
107 void PostMessage(const Var& message); | 107 void PostMessage(const Var& message); |
108 | 108 |
109 // @} | 109 // @} |
110 | 110 |
111 /** | 111 /** |
112 * Associates a plugin instance with an interface, | 112 * Associates a plugin instance with an interface, |
113 * creating an object... {PENDING: clarify!} | 113 * creating an object... {PENDING: clarify!} |
114 * | 114 * |
115 * Many optional interfaces are associated with a plugin instance. For | 115 * Many optional interfaces are associated with a plugin instance. For |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 InterfaceNameToObjectMap interface_name_to_objects_; | 160 InterfaceNameToObjectMap interface_name_to_objects_; |
161 }; | 161 }; |
162 | 162 |
163 } // namespace pp | 163 } // namespace pp |
164 | 164 |
165 /** | 165 /** |
166 * @} | 166 * @} |
167 * End addtogroup CPP | 167 * End addtogroup CPP |
168 */ | 168 */ |
169 #endif // PPAPI_CPP_INSTANCE_H_ | 169 #endif // PPAPI_CPP_INSTANCE_H_ |
OLD | NEW |