| 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 ... | 
| 11  * | 11  * | 
| 12  * @addtogroup CPP | 12  * @addtogroup CPP | 
| 13  * @{ | 13  * @{ | 
| 14  */ | 14  */ | 
| 15 | 15 | 
| 16 #include <map> | 16 #include <map> | 
| 17 #include <string> | 17 #include <string> | 
| 18 | 18 | 
| 19 #include "ppapi/c/pp_instance.h" | 19 #include "ppapi/c/pp_instance.h" | 
| 20 #include "ppapi/c/pp_resource.h" | 20 #include "ppapi/c/pp_resource.h" | 
| 21 #include "ppapi/c/pp_stdint.h" | 21 #include "ppapi/c/pp_stdint.h" | 
| 22 | 22 | 
| 23 struct PP_InputEvent; | 23 struct PP_InputEvent; | 
| 24 | 24 | 
| 25 /** The C++ interface to the Pepper API. */ | 25 /** The C++ interface to the Pepper API. */ | 
| 26 namespace pp { | 26 namespace pp { | 
| 27 | 27 | 
| 28 class Graphics2D; | 28 class Graphics2D; | 
| 29 class Context3D_Dev; |  | 
| 30 class ImageData; | 29 class ImageData; | 
| 31 class Point; | 30 class Point; | 
| 32 class Rect; | 31 class Rect; | 
| 33 class Rect; | 32 class Rect; | 
| 34 class Resource; | 33 class Resource; | 
|  | 34 class Surface3D_Dev; | 
| 35 class URLLoader; | 35 class URLLoader; | 
| 36 class Var; | 36 class Var; | 
| 37 class Widget_Dev; | 37 class Widget_Dev; | 
| 38 | 38 | 
| 39 class Instance { | 39 class Instance { | 
| 40  public: | 40  public: | 
| 41   explicit Instance(PP_Instance instance); | 41   explicit Instance(PP_Instance instance); | 
| 42   virtual ~Instance(); | 42   virtual ~Instance(); | 
| 43 | 43 | 
| 44   PP_Instance pp_instance() const { return pp_instance_; } | 44   PP_Instance pp_instance() const { return pp_instance_; } | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 82   /** See PPB_Instance.GetWindowObject. */ | 82   /** See PPB_Instance.GetWindowObject. */ | 
| 83   Var GetWindowObject(); | 83   Var GetWindowObject(); | 
| 84 | 84 | 
| 85   /** See PPB_Instance.GetOwnerElementObject. */ | 85   /** See PPB_Instance.GetOwnerElementObject. */ | 
| 86   Var GetOwnerElementObject(); | 86   Var GetOwnerElementObject(); | 
| 87 | 87 | 
| 88   /** See PPB_Instance.BindGraphics. */ | 88   /** See PPB_Instance.BindGraphics. */ | 
| 89   bool BindGraphics(const Graphics2D& graphics); | 89   bool BindGraphics(const Graphics2D& graphics); | 
| 90 | 90 | 
| 91   /** See PPB_Instance.BindGraphics. */ | 91   /** See PPB_Instance.BindGraphics. */ | 
| 92   // TODO(alokp): Change it to Surface3D. | 92   bool BindGraphics(const Surface3D_Dev& graphics); | 
| 93   bool BindGraphics(const Context3D_Dev& graphics); |  | 
| 94 | 93 | 
| 95   /** See PPB_Instance.IsFullFrame. */ | 94   /** See PPB_Instance.IsFullFrame. */ | 
| 96   bool IsFullFrame(); | 95   bool IsFullFrame(); | 
| 97 | 96 | 
| 98   /** See PPB_Instance.ExecuteScript. */ | 97   /** See PPB_Instance.ExecuteScript. */ | 
| 99   Var ExecuteScript(const Var& script, Var* exception = NULL); | 98   Var ExecuteScript(const Var& script, Var* exception = NULL); | 
| 100   // @} | 99   // @} | 
| 101 | 100 | 
| 102   /** | 101   /** | 
| 103    * Associates a plugin instance with an interface, | 102    * Associates a plugin instance with an interface, | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 151   InterfaceNameToObjectMap interface_name_to_objects_; | 150   InterfaceNameToObjectMap interface_name_to_objects_; | 
| 152 }; | 151 }; | 
| 153 | 152 | 
| 154 }  // namespace pp | 153 }  // namespace pp | 
| 155 | 154 | 
| 156 /** | 155 /** | 
| 157  * @} | 156  * @} | 
| 158  * End addtogroup CPP | 157  * End addtogroup CPP | 
| 159  */ | 158  */ | 
| 160 #endif  // PPAPI_CPP_INSTANCE_H_ | 159 #endif  // PPAPI_CPP_INSTANCE_H_ | 
| OLD | NEW | 
|---|