| 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 /// |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class Graphics3D_Dev; | 27 class Graphics3D_Dev; |
| 28 class InputEvent; | 28 class InputEvent; |
| 29 class ImageData; | 29 class ImageData; |
| 30 class Point; | 30 class Point; |
| 31 class Rect; | 31 class Rect; |
| 32 class Rect; | 32 class Rect; |
| 33 class Resource; | 33 class Resource; |
| 34 class Surface3D_Dev; | 34 class Surface3D_Dev; |
| 35 class URLLoader; | 35 class URLLoader; |
| 36 class Var; | 36 class Var; |
| 37 class Widget_Dev; | |
| 38 | 37 |
| 39 class Instance { | 38 class Instance { |
| 40 public: | 39 public: |
| 41 /// Construction of an instance should only be done in response to a browser | 40 /// Construction of an instance should only be done in response to a browser |
| 42 /// request in Module::CreateInstance. Otherwise, the instance will lack the | 41 /// request in Module::CreateInstance. Otherwise, the instance will lack the |
| 43 /// proper bookkeeping in the browser and in the C++ wrapper. | 42 /// proper bookkeeping in the browser and in the C++ wrapper. |
| 44 /// | 43 /// |
| 45 /// Init() will be called immediately after the constructor. This allows you | 44 /// Init() will be called immediately after the constructor. This allows you |
| 46 /// to perform initialization tasks that can fail and to report that failure | 45 /// to perform initialization tasks that can fail and to report that failure |
| 47 /// to the browser. | 46 /// to the browser. |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 typedef std::map<std::string, void*> InterfaceNameToObjectMap; | 466 typedef std::map<std::string, void*> InterfaceNameToObjectMap; |
| 468 InterfaceNameToObjectMap interface_name_to_objects_; | 467 InterfaceNameToObjectMap interface_name_to_objects_; |
| 469 }; | 468 }; |
| 470 | 469 |
| 471 } // namespace pp | 470 } // namespace pp |
| 472 | 471 |
| 473 /// @} | 472 /// @} |
| 474 /// End addtogroup CPP | 473 /// End addtogroup CPP |
| 475 | 474 |
| 476 #endif // PPAPI_CPP_INSTANCE_H_ | 475 #endif // PPAPI_CPP_INSTANCE_H_ |
| OLD | NEW |