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 an instance. | 9 /// Defines the C++ wrapper for an instance. |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 class Graphics3D_Dev; | 24 class Graphics3D_Dev; |
25 class InputEvent; | 25 class InputEvent; |
26 class ImageData; | 26 class ImageData; |
27 class Point; | 27 class Point; |
28 class Rect; | 28 class Rect; |
29 class Rect; | 29 class Rect; |
30 class Resource; | 30 class Resource; |
31 class Surface3D_Dev; | 31 class Surface3D_Dev; |
32 class URLLoader; | 32 class URLLoader; |
33 class Var; | 33 class Var; |
34 class Widget_Dev; | |
35 | 34 |
36 class Instance { | 35 class Instance { |
37 public: | 36 public: |
38 /// Default constructor. Construction of an instance should only be done in | 37 /// Default constructor. Construction of an instance should only be done in |
39 /// response to a browser request in <code>Module::CreateInstance</code>. | 38 /// response to a browser request in <code>Module::CreateInstance</code>. |
40 /// Otherwise, the instance will lack the proper bookkeeping in the browser | 39 /// Otherwise, the instance will lack the proper bookkeeping in the browser |
41 /// and in the C++ wrapper. | 40 /// and in the C++ wrapper. |
42 /// | 41 /// |
43 /// Init() will be called immediately after the constructor. This allows you | 42 /// Init() will be called immediately after the constructor. This allows you |
44 /// to perform initialization tasks that can fail and to report that failure | 43 /// to perform initialization tasks that can fail and to report that failure |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 private: | 477 private: |
479 PP_Instance pp_instance_; | 478 PP_Instance pp_instance_; |
480 | 479 |
481 typedef std::map<std::string, void*> InterfaceNameToObjectMap; | 480 typedef std::map<std::string, void*> InterfaceNameToObjectMap; |
482 InterfaceNameToObjectMap interface_name_to_objects_; | 481 InterfaceNameToObjectMap interface_name_to_objects_; |
483 }; | 482 }; |
484 | 483 |
485 } // namespace pp | 484 } // namespace pp |
486 | 485 |
487 #endif // PPAPI_CPP_INSTANCE_H_ | 486 #endif // PPAPI_CPP_INSTANCE_H_ |
OLD | NEW |