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

Side by Side Diff: ppapi/cpp/instance.h

Issue 7362012: Remove untrusted scripting support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 9 years, 5 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/ppp_instance.h ('k') | ppapi/cpp/instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INSTANCE_H_ 5 #ifndef PPAPI_CPP_INSTANCE_H_
6 #define PPAPI_CPP_INSTANCE_H_ 6 #define PPAPI_CPP_INSTANCE_H_
7 7
8 /// @file 8 /// @file
9 /// Defines the C++ wrapper for a plugin instance. 9 /// Defines the C++ wrapper for a plugin instance.
10 /// 10 ///
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 /// @param[in] url_loader A PP_Resource an open PPB_URLLoader instance. 178 /// @param[in] url_loader A PP_Resource an open PPB_URLLoader instance.
179 /// 179 ///
180 /// @return true if the data was handled, false otherwise. 180 /// @return true if the data was handled, false otherwise.
181 virtual bool HandleDocumentLoad(const URLLoader& url_loader); 181 virtual bool HandleDocumentLoad(const URLLoader& url_loader);
182 182
183 /// @} 183 /// @}
184 184
185 /// @{ 185 /// @{
186 /// @name PPB_Instance methods for querying the browser: 186 /// @name PPB_Instance methods for querying the browser:
187 187
188 #ifndef PPAPI_INSTANCE_REMOVE_SCRIPTING
189 /// See PPP_Instance.GetInstanceObject.
190 virtual Var GetInstanceObject();
191
192 /// See PPB_Instance.GetWindowObject.
193 Var GetWindowObject();
194
195 /// See PPB_Instance.GetOwnerElementObject.
196 Var GetOwnerElementObject();
197
198 /// See PPB_Instance.ExecuteScript.
199 Var ExecuteScript(const Var& script, Var* exception = NULL);
200 #endif
201
202 /// See PPB_Instance.BindGraphics. 188 /// See PPB_Instance.BindGraphics.
203 bool BindGraphics(const Graphics2D& graphics); 189 bool BindGraphics(const Graphics2D& graphics);
204 190
205 /// See PPB_Instance.BindGraphics. 191 /// See PPB_Instance.BindGraphics.
206 bool BindGraphics(const Surface3D_Dev& graphics); 192 bool BindGraphics(const Surface3D_Dev& graphics);
207 193
208 /// See PPB_Instance.IsFullFrame. 194 /// See PPB_Instance.IsFullFrame.
209 bool IsFullFrame(); 195 bool IsFullFrame();
210 196
211 int32_t RequestInputEvents(uint32_t event_classes); 197 int32_t RequestInputEvents(uint32_t event_classes);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 typedef std::map<std::string, void*> InterfaceNameToObjectMap; 254 typedef std::map<std::string, void*> InterfaceNameToObjectMap;
269 InterfaceNameToObjectMap interface_name_to_objects_; 255 InterfaceNameToObjectMap interface_name_to_objects_;
270 }; 256 };
271 257
272 } // namespace pp 258 } // namespace pp
273 259
274 /// @} 260 /// @}
275 /// End addtogroup CPP 261 /// End addtogroup CPP
276 262
277 #endif // PPAPI_CPP_INSTANCE_H_ 263 #endif // PPAPI_CPP_INSTANCE_H_
OLDNEW
« no previous file with comments | « ppapi/c/ppp_instance.h ('k') | ppapi/cpp/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698