| 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_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 /// |
| 11 /// @addtogroup CPP | 11 /// @addtogroup CPP |
| 12 /// @{ | 12 /// @{ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "ppapi/c/pp_instance.h" | 17 #include "ppapi/c/pp_instance.h" |
| 18 #include "ppapi/c/pp_resource.h" | 18 #include "ppapi/c/pp_resource.h" |
| 19 #include "ppapi/c/pp_stdint.h" | 19 #include "ppapi/c/pp_stdint.h" |
| 20 | 20 |
| 21 struct PP_InputEvent; | 21 struct PP_InputEvent; |
| 22 | 22 |
| 23 /// The C++ interface to the Pepper API. | 23 /// The C++ interface to the Pepper API. |
| 24 namespace pp { | 24 namespace pp { |
| 25 | 25 |
| 26 class Graphics2D; | 26 class Graphics2D; |
| 27 class Graphics3D_Dev; |
| 27 class InputEvent; | 28 class InputEvent; |
| 28 class ImageData; | 29 class ImageData; |
| 29 class Point; | 30 class Point; |
| 30 class Rect; | 31 class Rect; |
| 31 class Rect; | 32 class Rect; |
| 32 class Resource; | 33 class Resource; |
| 33 class Surface3D_Dev; | 34 class Surface3D_Dev; |
| 34 class URLLoader; | 35 class URLLoader; |
| 35 class Var; | 36 class Var; |
| 36 class Widget_Dev; | 37 class Widget_Dev; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 183 |
| 183 /// @} | 184 /// @} |
| 184 | 185 |
| 185 /// @{ | 186 /// @{ |
| 186 /// @name PPB_Instance methods for querying the browser: | 187 /// @name PPB_Instance methods for querying the browser: |
| 187 | 188 |
| 188 /// See PPB_Instance.BindGraphics. | 189 /// See PPB_Instance.BindGraphics. |
| 189 bool BindGraphics(const Graphics2D& graphics); | 190 bool BindGraphics(const Graphics2D& graphics); |
| 190 | 191 |
| 191 /// See PPB_Instance.BindGraphics. | 192 /// See PPB_Instance.BindGraphics. |
| 193 bool BindGraphics(const Graphics3D_Dev& graphics); |
| 194 |
| 195 /// See PPB_Instance.BindGraphics. |
| 192 bool BindGraphics(const Surface3D_Dev& graphics); | 196 bool BindGraphics(const Surface3D_Dev& graphics); |
| 193 | 197 |
| 194 /// See PPB_Instance.IsFullFrame. | 198 /// See PPB_Instance.IsFullFrame. |
| 195 bool IsFullFrame(); | 199 bool IsFullFrame(); |
| 196 | 200 |
| 197 int32_t RequestInputEvents(uint32_t event_classes); | 201 int32_t RequestInputEvents(uint32_t event_classes); |
| 198 int32_t RequestFilteringInputEvents(uint32_t event_classes); | 202 int32_t RequestFilteringInputEvents(uint32_t event_classes); |
| 199 void ClearInputEventRequest(uint32_t event_classes); | 203 void ClearInputEventRequest(uint32_t event_classes); |
| 200 | 204 |
| 201 // These functions use the PPP_Messaging and PPB_Messaging interfaces, so that | 205 // These functions use the PPP_Messaging and PPB_Messaging interfaces, so that |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 typedef std::map<std::string, void*> InterfaceNameToObjectMap; | 258 typedef std::map<std::string, void*> InterfaceNameToObjectMap; |
| 255 InterfaceNameToObjectMap interface_name_to_objects_; | 259 InterfaceNameToObjectMap interface_name_to_objects_; |
| 256 }; | 260 }; |
| 257 | 261 |
| 258 } // namespace pp | 262 } // namespace pp |
| 259 | 263 |
| 260 /// @} | 264 /// @} |
| 261 /// End addtogroup CPP | 265 /// End addtogroup CPP |
| 262 | 266 |
| 263 #endif // PPAPI_CPP_INSTANCE_H_ | 267 #endif // PPAPI_CPP_INSTANCE_H_ |
| OLD | NEW |