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_PRIVATE_VAR_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_ |
6 #define PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "ppapi/cpp/var.h" | 10 #include "ppapi/cpp/var.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 109 } |
110 | 110 |
111 private: | 111 private: |
112 Var* output_; | 112 Var* output_; |
113 bool originally_had_exception_; | 113 bool originally_had_exception_; |
114 PP_Var temp_; | 114 PP_Var temp_; |
115 }; | 115 }; |
116 | 116 |
117 private: | 117 private: |
118 // Prevent an arbitrary pointer argument from being implicitly converted to | 118 // Prevent an arbitrary pointer argument from being implicitly converted to |
119 // a bool at Var construction. If somebody makes such a mistake, (s)he will | 119 // a bool at Var construction. If somebody makes such a mistake, they will |
120 // get a compilation error. | 120 // get a compilation error. |
121 VarPrivate(void* non_scriptable_object_pointer); | 121 VarPrivate(void* non_scriptable_object_pointer); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace pp | 124 } // namespace pp |
125 | 125 |
126 #endif // PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_ | 126 #endif // PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_ |
OLD | NEW |