| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DEV_VAR_DICTIONARY_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_VAR_DICTIONARY_DEV_H_ |
| 6 #define PPAPI_CPP_DEV_VAR_DICTIONARY_DEV_H_ | 6 #define PPAPI_CPP_DEV_VAR_DICTIONARY_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/cpp/dev/var_array_dev.h" | 9 #include "ppapi/cpp/dev/var_array_dev.h" |
| 10 #include "ppapi/cpp/var.h" | 10 #include "ppapi/cpp/var.h" |
| 11 | 11 |
| 12 /// @file | 12 /// @file |
| 13 /// This file defines the API for interacting with dictionary vars. | 13 /// This file defines the API for interacting with dictionary vars. |
| 14 | 14 |
| 15 namespace pp { | 15 namespace pp { |
| 16 | 16 |
| 17 class VarDictionary_Dev : public Var { | 17 class VarDictionary_Dev : public Var { |
| 18 public: | 18 public: |
| 19 /// Constructs a new dictionary var. | 19 /// Constructs a new dictionary var. |
| 20 VarDictionary_Dev(); | 20 VarDictionary_Dev(); |
| 21 | 21 |
| 22 /// Contructs a <code>VarDictionary_Dev</code> given a var for which | 22 /// Constructs a <code>VarDictionary_Dev</code> given a var for which |
| 23 /// is_dictionary() is true. This will refer to the same dictionary var, but | 23 /// is_dictionary() is true. This will refer to the same dictionary var, but |
| 24 /// allow you to access methods specific to dictionary. | 24 /// allow you to access methods specific to dictionary. |
| 25 /// | 25 /// |
| 26 /// @param[in] var A dictionary var. | 26 /// @param[in] var A dictionary var. |
| 27 explicit VarDictionary_Dev(const Var& var); | 27 explicit VarDictionary_Dev(const Var& var); |
| 28 | 28 |
| 29 /// Contructs a <code>VarDictionary_Dev</code> given a <code>PP_Var</code> | 29 /// Constructs a <code>VarDictionary_Dev</code> given a <code>PP_Var</code> |
| 30 /// of type PP_VARTYPE_DICTIONARY. | 30 /// of type PP_VARTYPE_DICTIONARY. |
| 31 /// | 31 /// |
| 32 /// @param[in] var A <code>PP_Var</code> of type PP_VARTYPE_DICTIONARY. | 32 /// @param[in] var A <code>PP_Var</code> of type PP_VARTYPE_DICTIONARY. |
| 33 explicit VarDictionary_Dev(const PP_Var& var); | 33 explicit VarDictionary_Dev(const PP_Var& var); |
| 34 | 34 |
| 35 /// Copy constructor. | 35 /// Copy constructor. |
| 36 VarDictionary_Dev(const VarDictionary_Dev& other); | 36 VarDictionary_Dev(const VarDictionary_Dev& other); |
| 37 | 37 |
| 38 virtual ~VarDictionary_Dev(); | 38 virtual ~VarDictionary_Dev(); |
| 39 | 39 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 /// Gets all the keys in the dictionary. | 84 /// Gets all the keys in the dictionary. |
| 85 /// | 85 /// |
| 86 /// @return An array var which contains all the keys of the dictionary. | 86 /// @return An array var which contains all the keys of the dictionary. |
| 87 /// The elements are string vars. Returns an empty array var if failed. | 87 /// The elements are string vars. Returns an empty array var if failed. |
| 88 VarArray_Dev GetKeys() const; | 88 VarArray_Dev GetKeys() const; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace pp | 91 } // namespace pp |
| 92 | 92 |
| 93 #endif // PPAPI_CPP_DEV_VAR_DICTIONARY_DEV_H_ | 93 #endif // PPAPI_CPP_DEV_VAR_DICTIONARY_DEV_H_ |
| OLD | NEW |