| 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_VAR_H_ | 5 #ifndef PPAPI_CPP_VAR_H_ |
| 6 #define PPAPI_CPP_VAR_H_ | 6 #define PPAPI_CPP_VAR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ppapi/c/pp_module.h" | |
| 12 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
| 13 | 12 |
| 14 | 13 |
| 15 /// @file | 14 /// @file |
| 16 /// This file defines the API for handling the passing of data types between | 15 /// This file defines the API for handling the passing of data types between |
| 17 /// your module and the page. | 16 /// your module and the page. |
| 18 namespace pp { | 17 namespace pp { |
| 19 | 18 |
| 20 /// A generic type used for passing data types between the module and the page. | 19 /// A generic type used for passing data types between the module and the page. |
| 21 class Var { | 20 class Var { |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 private: | 288 private: |
| 290 // Prevent an arbitrary pointer argument from being implicitly converted to | 289 // Prevent an arbitrary pointer argument from being implicitly converted to |
| 291 // a bool at Var construction. If somebody makes such a mistake, (s)he will | 290 // a bool at Var construction. If somebody makes such a mistake, (s)he will |
| 292 // get a compilation error. | 291 // get a compilation error. |
| 293 Var(void* non_scriptable_object_pointer); | 292 Var(void* non_scriptable_object_pointer); |
| 294 }; | 293 }; |
| 295 | 294 |
| 296 } // namespace pp | 295 } // namespace pp |
| 297 | 296 |
| 298 #endif // PPAPI_CPP_VAR_H_ | 297 #endif // PPAPI_CPP_VAR_H_ |
| OLD | NEW |