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 /// This file defines the C++ wrapper for an instance. | 9 /// This file defines the C++ wrapper for an instance. |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
17 | 17 |
18 struct PP_InputEvent; | 18 struct PP_InputEvent; |
19 | 19 |
20 /// The C++ interface to the Pepper API. | 20 /// The C++ interface to the Pepper API. |
21 namespace pp { | 21 namespace pp { |
22 | 22 |
23 class Graphics2D; | 23 class Graphics2D; |
24 class Graphics3D; | 24 class Graphics3D; |
25 class InputEvent; | 25 class InputEvent; |
26 class ImageData; | |
27 class Point; | |
28 class Rect; | 26 class Rect; |
29 class Rect; | |
30 class Resource; | |
31 class Surface3D_Dev; | 27 class Surface3D_Dev; |
32 class URLLoader; | 28 class URLLoader; |
33 class Var; | 29 class Var; |
34 | 30 |
35 class Instance { | 31 class Instance { |
36 public: | 32 public: |
37 /// Default constructor. Construction of an instance should only be done in | 33 /// Default constructor. Construction of an instance should only be done in |
38 /// response to a browser request in <code>Module::CreateInstance</code>. | 34 /// response to a browser request in <code>Module::CreateInstance</code>. |
39 /// Otherwise, the instance will lack the proper bookkeeping in the browser | 35 /// Otherwise, the instance will lack the proper bookkeeping in the browser |
40 /// and in the C++ wrapper. | 36 /// and in the C++ wrapper. |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 private: | 507 private: |
512 PP_Instance pp_instance_; | 508 PP_Instance pp_instance_; |
513 | 509 |
514 typedef std::map<std::string, void*> InterfaceNameToObjectMap; | 510 typedef std::map<std::string, void*> InterfaceNameToObjectMap; |
515 InterfaceNameToObjectMap interface_name_to_objects_; | 511 InterfaceNameToObjectMap interface_name_to_objects_; |
516 }; | 512 }; |
517 | 513 |
518 } // namespace pp | 514 } // namespace pp |
519 | 515 |
520 #endif // PPAPI_CPP_INSTANCE_H_ | 516 #endif // PPAPI_CPP_INSTANCE_H_ |
OLD | NEW |