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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 private: | 291 private: |
293 // Prevent an arbitrary pointer argument from being implicitly converted to | 292 // Prevent an arbitrary pointer argument from being implicitly converted to |
294 // a bool at Var construction. If somebody makes such a mistake, (s)he will | 293 // a bool at Var construction. If somebody makes such a mistake, (s)he will |
295 // get a compilation error. | 294 // get a compilation error. |
296 Var(void* non_scriptable_object_pointer); | 295 Var(void* non_scriptable_object_pointer); |
297 }; | 296 }; |
298 | 297 |
299 } // namespace pp | 298 } // namespace pp |
300 | 299 |
301 #endif // PPAPI_CPP_VAR_H_ | 300 #endif // PPAPI_CPP_VAR_H_ |
OLD | NEW |