Home | History | Annotate | Download | only in base

Lines Matching refs:in_value

90 FundamentalValue* Value::CreateBooleanValue(bool in_value) {
91 return new FundamentalValue(in_value);
95 FundamentalValue* Value::CreateIntegerValue(int in_value) {
96 return new FundamentalValue(in_value);
100 FundamentalValue* Value::CreateDoubleValue(double in_value) {
101 return new FundamentalValue(in_value);
105 StringValue* Value::CreateStringValue(const std::string& in_value) {
106 return new StringValue(in_value);
110 StringValue* Value::CreateStringValue(const string16& in_value) {
111 return new StringValue(in_value);
182 FundamentalValue::FundamentalValue(bool in_value)
183 : Value(TYPE_BOOLEAN), boolean_value_(in_value) {
186 FundamentalValue::FundamentalValue(int in_value)
187 : Value(TYPE_INTEGER), integer_value_(in_value) {
190 FundamentalValue::FundamentalValue(double in_value)
191 : Value(TYPE_DOUBLE), double_value_(in_value) {
264 StringValue::StringValue(const std::string& in_value)
266 value_(in_value) {
267 DCHECK(IsStringUTF8(in_value));
270 StringValue::StringValue(const string16& in_value)
272 value_(UTF16ToUTF8(in_value)) {
378 void DictionaryValue::Set(const std::string& path, Value* in_value) {
380 DCHECK(in_value);
399 current_dictionary->SetWithoutPathExpansion(current_path, in_value);
402 void DictionaryValue::SetBoolean(const std::string& path, bool in_value) {
403 Set(path, CreateBooleanValue(in_value));
406 void DictionaryValue::SetInteger(const std::string& path, int in_value) {
407 Set(path, CreateIntegerValue(in_value));
410 void DictionaryValue::SetDouble(const std::string& path, double in_value) {
411 Set(path, CreateDoubleValue(in_value));
415 const std::string& in_value) {
416 Set(path, CreateStringValue(in_value));
420 const string16& in_value) {
421 Set(path, CreateStringValue(in_value));
425 Value* in_value) {
429 dictionary_.insert(std::make_pair(key, in_value));
431 DCHECK_NE(ins_res.first->second, in_value); // This would be bogus
433 ins_res.first->second = in_value;
438 const std::string& path, bool in_value) {
439 SetWithoutPathExpansion(path, CreateBooleanValue(in_value));
443 const std::string& path, int in_value) {
444 SetWithoutPathExpansion(path, CreateIntegerValue(in_value));
448 const std::string& path, double in_value) {
449 SetWithoutPathExpansion(path, CreateDoubleValue(in_value));
453 const std::string& path, const std::string& in_value) {
454 SetWithoutPathExpansion(path, CreateStringValue(in_value));
458 const std::string& path, const string16& in_value) {
459 SetWithoutPathExpansion(path, CreateStringValue(in_value));
834 bool ListValue::Set(size_t index, Value* in_value) {
835 if (!in_value)
842 Append(in_value);
844 DCHECK(list_[index] != in_value);
846 list_[index] = in_value;
1000 void ListValue::Append(Value* in_value) {
1001 DCHECK(in_value);
1002 list_.push_back(in_value);
1005 void ListValue::AppendBoolean(bool in_value) {
1006 Append(CreateBooleanValue(in_value));
1009 void ListValue::AppendInteger(int in_value) {
1010 Append(CreateIntegerValue(in_value));
1013 void ListValue::AppendDouble(double in_value) {
1014 Append(CreateDoubleValue(in_value));
1017 void ListValue::AppendString(const std::string& in_value) {
1018 Append(CreateStringValue(in_value));
1021 void ListValue::AppendString(const string16& in_value) {
1022 Append(CreateStringValue(in_value));
1039 bool ListValue::AppendIfNotPresent(Value* in_value) {
1040 DCHECK(in_value);
1042 if ((*i)->Equals(in_value)) {
1043 delete in_value;
1047 list_.push_back(in_value);
1051 bool ListValue::Insert(size_t index, Value* in_value) {
1052 DCHECK(in_value);
1056 list_.insert(list_.begin() + index, in_value);