| 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 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 Var(const Var& other); | 85 Var(const Var& other); |
| 86 | 86 |
| 87 /// Destructor. | 87 /// Destructor. |
| 88 virtual ~Var(); | 88 virtual ~Var(); |
| 89 | 89 |
| 90 /// This function assigns one <code>Var</code> to another <code>Var</code>. | 90 /// This function assigns one <code>Var</code> to another <code>Var</code>. |
| 91 /// | 91 /// |
| 92 /// @param[in] other The <code>Var</code> to be assigned. | 92 /// @param[in] other The <code>Var</code> to be assigned. |
| 93 /// | 93 /// |
| 94 /// @return A resulting <code>Var</code>. | 94 /// @return A resulting <code>Var</code>. |
| 95 Var& operator=(const Var& other); | 95 virtual Var& operator=(const Var& other); |
| 96 | 96 |
| 97 /// This function compares object identity (rather than value identity) for | 97 /// This function compares object identity (rather than value identity) for |
| 98 /// objects, dictionaries, and arrays | 98 /// objects, dictionaries, and arrays |
| 99 /// | 99 /// |
| 100 /// @param[in] other The <code>Var</code> to be compared to this Var. | 100 /// @param[in] other The <code>Var</code> to be compared to this Var. |
| 101 /// | 101 /// |
| 102 /// @return true if the <code>other</code> <code>Var</code> is the same as | 102 /// @return true if the <code>other</code> <code>Var</code> is the same as |
| 103 /// this <code>Var</code>, otherwise false. | 103 /// this <code>Var</code>, otherwise false. |
| 104 bool operator==(const Var& other) const; | 104 bool operator==(const Var& other) const; |
| 105 | 105 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 private: | 291 private: |
| 292 // Prevent an arbitrary pointer argument from being implicitly converted to | 292 // Prevent an arbitrary pointer argument from being implicitly converted to |
| 293 // 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 |
| 294 // get a compilation error. | 294 // get a compilation error. |
| 295 Var(void* non_scriptable_object_pointer); | 295 Var(void* non_scriptable_object_pointer); |
| 296 }; | 296 }; |
| 297 | 297 |
| 298 } // namespace pp | 298 } // namespace pp |
| 299 | 299 |
| 300 #endif // PPAPI_CPP_VAR_H_ | 300 #endif // PPAPI_CPP_VAR_H_ |
| OLD | NEW |