Lines Matching defs:in_value
164 FundamentalValue::FundamentalValue(bool in_value)
165 : Value(TYPE_BOOLEAN), boolean_value_(in_value) {
168 FundamentalValue::FundamentalValue(int in_value)
169 : Value(TYPE_INTEGER), integer_value_(in_value) {
172 FundamentalValue::FundamentalValue(double in_value)
173 : Value(TYPE_DOUBLE), double_value_(in_value) {
246 StringValue::StringValue(const std::string& in_value)
248 value_(in_value) {
249 DCHECK(IsStringUTF8(in_value));
252 StringValue::StringValue(const string16& in_value)
254 value_(UTF16ToUTF8(in_value)) {
374 void DictionaryValue::Set(const std::string& path, Value* in_value) {
376 DCHECK(in_value);
395 current_dictionary->SetWithoutPathExpansion(current_path, in_value);
398 void DictionaryValue::SetBoolean(const std::string& path, bool in_value) {
399 Set(path, new FundamentalValue(in_value));
402 void DictionaryValue::SetInteger(const std::string& path, int in_value) {
403 Set(path, new FundamentalValue(in_value));
406 void DictionaryValue::SetDouble(const std::string& path, double in_value) {
407 Set(path, new FundamentalValue(in_value));
411 const std::string& in_value) {
412 Set(path, new StringValue(in_value));
416 const string16& in_value) {
417 Set(path, new StringValue(in_value));
421 Value* in_value) {
425 dictionary_.insert(std::make_pair(key, in_value));
427 DCHECK_NE(ins_res.first->second, in_value); // This would be bogus
429 ins_res.first->second = in_value;
434 const std::string& path, bool in_value) {
435 SetWithoutPathExpansion(path, new FundamentalValue(in_value));
439 const std::string& path, int in_value) {
440 SetWithoutPathExpansion(path, new FundamentalValue(in_value));
444 const std::string& path, double in_value) {
445 SetWithoutPathExpansion(path, new FundamentalValue(in_value));
449 const std::string& path, const std::string& in_value) {
450 SetWithoutPathExpansion(path, new StringValue(in_value));
454 const std::string& path, const string16& in_value) {
455 SetWithoutPathExpansion(path, new StringValue(in_value));
849 bool ListValue::Set(size_t index, Value* in_value) {
850 if (!in_value)
857 Append(in_value);
859 DCHECK(list_[index] != in_value);
861 list_[index] = in_value;
1015 void ListValue::Append(Value* in_value) {
1016 DCHECK(in_value);
1017 list_.push_back(in_value);
1020 void ListValue::AppendBoolean(bool in_value) {
1021 Append(new FundamentalValue(in_value));
1024 void ListValue::AppendInteger(int in_value) {
1025 Append(new FundamentalValue(in_value));
1028 void ListValue::AppendDouble(double in_value) {
1029 Append(new FundamentalValue(in_value));
1032 void ListValue::AppendString(const std::string& in_value) {
1033 Append(new StringValue(in_value));
1036 void ListValue::AppendString(const string16& in_value) {
1037 Append(new StringValue(in_value));
1054 bool ListValue::AppendIfNotPresent(Value* in_value) {
1055 DCHECK(in_value);
1057 if ((*i)->Equals(in_value)) {
1058 delete in_value;
1062 list_.push_back(in_value);
1066 bool ListValue::Insert(size_t index, Value* in_value) {
1067 DCHECK(in_value);
1071 list_.insert(list_.begin() + index, in_value);