OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 typedef struct _pp_Var PP_Var; | 10 struct PP_Var; |
11 typedef struct _ppb_Var PPB_Var; | 11 struct PPB_Var; |
12 typedef struct NPObject NPObject; | 12 typedef struct NPObject NPObject; |
13 typedef struct _NPVariant NPVariant; | 13 typedef struct _NPVariant NPVariant; |
14 typedef void* NPIdentifier; | 14 typedef void* NPIdentifier; |
15 | 15 |
16 namespace pepper { | 16 namespace pepper { |
17 | 17 |
18 class String; | 18 class String; |
19 | 19 |
20 // There's no class implementing Var since it could represent a number of | 20 // There's no class implementing Var since it could represent a number of |
21 // objects. Instead, we just expose a getter for the interface implemented in | 21 // objects. Instead, we just expose a getter for the interface implemented in |
(...skipping 16 matching lines...) Expand all Loading... |
38 PP_Var StringToPPVar(const std::string& str); | 38 PP_Var StringToPPVar(const std::string& str); |
39 | 39 |
40 // Returns the String corresponding to the PP_Var. This pointer has not been | 40 // Returns the String corresponding to the PP_Var. This pointer has not been |
41 // AddRef'd, so you should not call Release! Returns NULL if the PP_Var is not | 41 // AddRef'd, so you should not call Release! Returns NULL if the PP_Var is not |
42 // a string type. | 42 // a string type. |
43 String* GetString(PP_Var var); | 43 String* GetString(PP_Var var); |
44 | 44 |
45 } // namespace pepper | 45 } // namespace pepper |
46 | 46 |
47 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_ | 47 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_ |
OLD | NEW |