Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
dmichael (off chromium)
2012/02/02 19:49:56
2012; to save you the pre-commit check annoyance
| |
| 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> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 /// <code>\<embed id="nacl_module" dimensions="2"\></code> will produce two | 78 /// <code>\<embed id="nacl_module" dimensions="2"\></code> will produce two |
| 79 /// argument names: "id" and "dimensions". | 79 /// argument names: "id" and "dimensions". |
| 80 /// | 80 /// |
| 81 /// @param[in] argv An array of argument values. These are the values of the | 81 /// @param[in] argv An array of argument values. These are the values of the |
| 82 /// arguments listed in the \<embed\> tag, for example | 82 /// arguments listed in the \<embed\> tag, for example |
| 83 /// <code>\<embed id="nacl_module" dimensions="2"\></code> will produce two | 83 /// <code>\<embed id="nacl_module" dimensions="2"\></code> will produce two |
| 84 /// argument values: "nacl_module" and "2". The indices of these values | 84 /// argument values: "nacl_module" and "2". The indices of these values |
| 85 /// match the indices of the corresponding names in <code>argn</code>. | 85 /// match the indices of the corresponding names in <code>argn</code>. |
| 86 /// | 86 /// |
| 87 /// @return true on success. Returning false causes the instance to be | 87 /// @return true on success. Returning false causes the instance to be |
| 88 /// instance to be deleted and no other functions to be called. | 88 /// deleted and no other functions to be called. |
| 89 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]); | 89 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]); |
| 90 | 90 |
| 91 /// @{ | 91 /// @{ |
| 92 /// @name PPP_Instance methods for the module to override: | 92 /// @name PPP_Instance methods for the module to override: |
| 93 | 93 |
| 94 /// DidChangeView() is called when the view information for the Instance | 94 /// DidChangeView() is called when the view information for the Instance |
| 95 /// has changed. See the <code>View</code> object for information. | 95 /// has changed. See the <code>View</code> object for information. |
| 96 /// | 96 /// |
| 97 /// Most implementations will want to check if the size and user visibility | 97 /// Most implementations will want to check if the size and user visibility |
| 98 /// changed, and either resize themselves or start/stop generating updates. | 98 /// changed, and either resize themselves or start/stop generating updates. |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 510 private: | 510 private: |
| 511 PP_Instance pp_instance_; | 511 PP_Instance pp_instance_; |
| 512 | 512 |
| 513 typedef std::map<std::string, void*> InterfaceNameToObjectMap; | 513 typedef std::map<std::string, void*> InterfaceNameToObjectMap; |
| 514 InterfaceNameToObjectMap interface_name_to_objects_; | 514 InterfaceNameToObjectMap interface_name_to_objects_; |
| 515 }; | 515 }; |
| 516 | 516 |
| 517 } // namespace pp | 517 } // namespace pp |
| 518 | 518 |
| 519 #endif // PPAPI_CPP_INSTANCE_H_ | 519 #endif // PPAPI_CPP_INSTANCE_H_ |
| OLD | NEW |