Lines Matching refs:DictionaryValue
50 std::unique_ptr<DictionaryValue> CopyDictionaryWithoutEmptyChildren( in CopyDictionaryWithoutEmptyChildren()
51 const DictionaryValue& dict) { in CopyDictionaryWithoutEmptyChildren()
52 std::unique_ptr<DictionaryValue> copy; in CopyDictionaryWithoutEmptyChildren()
53 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) { in CopyDictionaryWithoutEmptyChildren()
57 copy = std::make_unique<DictionaryValue>(); in CopyDictionaryWithoutEmptyChildren()
71 static_cast<const DictionaryValue&>(node)); in CopyWithoutEmptyChildren()
520 bool Value::GetAsDictionary(DictionaryValue** out_value) { in GetAsDictionary()
522 *out_value = static_cast<DictionaryValue*>(this); in GetAsDictionary()
528 bool Value::GetAsDictionary(const DictionaryValue** out_value) const { in GetAsDictionary()
530 *out_value = static_cast<const DictionaryValue*>(this); in GetAsDictionary()
709 std::unique_ptr<DictionaryValue> DictionaryValue::From( in From()
711 DictionaryValue* out; in From()
719 DictionaryValue::DictionaryValue() : Value(Type::DICTIONARY) {} in DictionaryValue() function in base::DictionaryValue
720 DictionaryValue::DictionaryValue(const DictStorage& in_dict) : Value(in_dict) {} in DictionaryValue() function in base::DictionaryValue
721 DictionaryValue::DictionaryValue(DictStorage&& in_dict) noexcept in DictionaryValue() function in base::DictionaryValue
724 bool DictionaryValue::HasKey(StringPiece key) const { in HasKey()
731 void DictionaryValue::Clear() { in Clear()
735 Value* DictionaryValue::Set(StringPiece path, std::unique_ptr<Value> in_value) { in Set()
757 return static_cast<DictionaryValue*>(current_dictionary) in Set()
761 Value* DictionaryValue::SetBoolean(StringPiece path, bool in_value) { in SetBoolean()
765 Value* DictionaryValue::SetInteger(StringPiece path, int in_value) { in SetInteger()
769 Value* DictionaryValue::SetDouble(StringPiece path, double in_value) { in SetDouble()
773 Value* DictionaryValue::SetString(StringPiece path, StringPiece in_value) { in SetString()
777 Value* DictionaryValue::SetString(StringPiece path, const string16& in_value) { in SetString()
781 DictionaryValue* DictionaryValue::SetDictionary( in SetDictionary()
783 std::unique_ptr<DictionaryValue> in_value) { in SetDictionary()
784 return static_cast<DictionaryValue*>(Set(path, std::move(in_value))); in SetDictionary()
787 ListValue* DictionaryValue::SetList(StringPiece path, in SetList()
792 Value* DictionaryValue::SetWithoutPathExpansion( in SetWithoutPathExpansion()
805 bool DictionaryValue::Get(StringPiece path, in Get()
809 const DictionaryValue* current_dictionary = this; in Get()
813 const DictionaryValue* child_dictionary = nullptr; in Get()
826 bool DictionaryValue::Get(StringPiece path, Value** out_value) { in Get()
827 return static_cast<const DictionaryValue&>(*this).Get( in Get()
832 bool DictionaryValue::GetBoolean(StringPiece path, bool* bool_value) const { in GetBoolean()
840 bool DictionaryValue::GetInteger(StringPiece path, int* out_value) const { in GetInteger()
848 bool DictionaryValue::GetDouble(StringPiece path, double* out_value) const { in GetDouble()
856 bool DictionaryValue::GetString(StringPiece path, in GetString()
865 bool DictionaryValue::GetString(StringPiece path, string16* out_value) const { in GetString()
873 bool DictionaryValue::GetStringASCII(StringPiece path, in GetStringASCII()
888 bool DictionaryValue::GetBinary(StringPiece path, in GetBinary()
901 bool DictionaryValue::GetBinary(StringPiece path, Value** out_value) { in GetBinary()
902 return static_cast<const DictionaryValue&>(*this).GetBinary( in GetBinary()
906 bool DictionaryValue::GetDictionary(StringPiece path, in GetDictionary()
907 const DictionaryValue** out_value) const { in GetDictionary()
914 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionary()
919 bool DictionaryValue::GetDictionary(StringPiece path, in GetDictionary()
920 DictionaryValue** out_value) { in GetDictionary()
921 return static_cast<const DictionaryValue&>(*this).GetDictionary( in GetDictionary()
923 const_cast<const DictionaryValue**>(out_value)); in GetDictionary()
926 bool DictionaryValue::GetList(StringPiece path, in GetList()
939 bool DictionaryValue::GetList(StringPiece path, ListValue** out_value) { in GetList()
940 return static_cast<const DictionaryValue&>(*this).GetList( in GetList()
945 bool DictionaryValue::GetWithoutPathExpansion(StringPiece key, in GetWithoutPathExpansion()
957 bool DictionaryValue::GetWithoutPathExpansion(StringPiece key, in GetWithoutPathExpansion()
959 return static_cast<const DictionaryValue&>(*this).GetWithoutPathExpansion( in GetWithoutPathExpansion()
964 bool DictionaryValue::GetBooleanWithoutPathExpansion(StringPiece key, in GetBooleanWithoutPathExpansion()
973 bool DictionaryValue::GetIntegerWithoutPathExpansion(StringPiece key, in GetIntegerWithoutPathExpansion()
982 bool DictionaryValue::GetDoubleWithoutPathExpansion(StringPiece key, in GetDoubleWithoutPathExpansion()
991 bool DictionaryValue::GetStringWithoutPathExpansion( in GetStringWithoutPathExpansion()
1001 bool DictionaryValue::GetStringWithoutPathExpansion(StringPiece key, in GetStringWithoutPathExpansion()
1010 bool DictionaryValue::GetDictionaryWithoutPathExpansion( in GetDictionaryWithoutPathExpansion()
1012 const DictionaryValue** out_value) const { in GetDictionaryWithoutPathExpansion()
1019 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionaryWithoutPathExpansion()
1024 bool DictionaryValue::GetDictionaryWithoutPathExpansion( in GetDictionaryWithoutPathExpansion()
1026 DictionaryValue** out_value) { in GetDictionaryWithoutPathExpansion()
1027 const DictionaryValue& const_this = in GetDictionaryWithoutPathExpansion()
1028 static_cast<const DictionaryValue&>(*this); in GetDictionaryWithoutPathExpansion()
1031 const_cast<const DictionaryValue**>(out_value)); in GetDictionaryWithoutPathExpansion()
1034 bool DictionaryValue::GetListWithoutPathExpansion( in GetListWithoutPathExpansion()
1048 bool DictionaryValue::GetListWithoutPathExpansion(StringPiece key, in GetListWithoutPathExpansion()
1051 static_cast<const DictionaryValue&>(*this).GetListWithoutPathExpansion( in GetListWithoutPathExpansion()
1056 bool DictionaryValue::Remove(StringPiece path, in Remove()
1060 DictionaryValue* current_dictionary = this; in Remove()
1073 bool DictionaryValue::RemoveWithoutPathExpansion( in RemoveWithoutPathExpansion()
1087 bool DictionaryValue::RemovePath(StringPiece path, in RemovePath()
1096 DictionaryValue* subdict = nullptr; in RemovePath()
1107 std::unique_ptr<DictionaryValue> DictionaryValue::DeepCopyWithoutEmptyChildren() in DeepCopyWithoutEmptyChildren()
1109 std::unique_ptr<DictionaryValue> copy = in DeepCopyWithoutEmptyChildren()
1112 copy = std::make_unique<DictionaryValue>(); in DeepCopyWithoutEmptyChildren()
1116 void DictionaryValue::MergeDictionary(const DictionaryValue* dictionary) { in MergeDictionary()
1118 for (DictionaryValue::Iterator it(*dictionary); !it.IsAtEnd(); it.Advance()) { in MergeDictionary()
1122 DictionaryValue* sub_dict; in MergeDictionary()
1125 static_cast<const DictionaryValue*>(merge_value)); in MergeDictionary()
1134 void DictionaryValue::Swap(DictionaryValue* other) { in Swap()
1139 DictionaryValue::Iterator::Iterator(const DictionaryValue& target) in Iterator()
1142 DictionaryValue::Iterator::Iterator(const Iterator& other) = default;
1144 DictionaryValue::Iterator::~Iterator() = default;
1146 DictionaryValue* DictionaryValue::DeepCopy() const { in DeepCopy()
1147 return new DictionaryValue(dict_); in DeepCopy()
1150 std::unique_ptr<DictionaryValue> DictionaryValue::CreateDeepCopy() const { in CreateDeepCopy()
1151 return std::make_unique<DictionaryValue>(dict_); in CreateDeepCopy()
1247 const DictionaryValue** out_value) const { in GetDictionary()
1254 *out_value = static_cast<const DictionaryValue*>(value); in GetDictionary()
1259 bool ListValue::GetDictionary(size_t index, DictionaryValue** out_value) { in GetDictionary()
1262 const_cast<const DictionaryValue**>(out_value)); in GetDictionary()