Home | History | Annotate | Download | only in base

Lines Matching refs:in_value

73 FundamentalValue* Value::CreateBooleanValue(bool in_value) {
74 return new FundamentalValue(in_value);
78 FundamentalValue* Value::CreateIntegerValue(int in_value) {
79 return new FundamentalValue(in_value);
83 FundamentalValue* Value::CreateDoubleValue(double in_value) {
84 return new FundamentalValue(in_value);
88 StringValue* Value::CreateStringValue(const std::string& in_value) {
89 return new StringValue(in_value);
93 StringValue* Value::CreateStringValue(const string16& in_value) {
94 return new StringValue(in_value);
152 FundamentalValue::FundamentalValue(bool in_value)
153 : Value(TYPE_BOOLEAN), boolean_value_(in_value) {
156 FundamentalValue::FundamentalValue(int in_value)
157 : Value(TYPE_INTEGER), integer_value_(in_value) {
160 FundamentalValue::FundamentalValue(double in_value)
161 : Value(TYPE_DOUBLE), double_value_(in_value) {
227 StringValue::StringValue(const std::string& in_value)
229 value_(in_value) {
230 DCHECK(IsStringUTF8(in_value));
233 StringValue::StringValue(const string16& in_value)
235 value_(UTF16ToUTF8(in_value)) {
338 void DictionaryValue::Set(const std::string& path, Value* in_value) {
340 DCHECK(in_value);
359 current_dictionary->SetWithoutPathExpansion(current_path, in_value);
362 void DictionaryValue::SetBoolean(const std::string& path, bool in_value) {
363 Set(path, CreateBooleanValue(in_value));
366 void DictionaryValue::SetInteger(const std::string& path, int in_value) {
367 Set(path, CreateIntegerValue(in_value));
370 void DictionaryValue::SetDouble(const std::string& path, double in_value) {
371 Set(path, CreateDoubleValue(in_value));
375 const std::string& in_value) {
376 Set(path, CreateStringValue(in_value));
380 const string16& in_value) {
381 Set(path, CreateStringValue(in_value));
385 Value* in_value) {
389 DCHECK(dictionary_[key] != in_value); // This would be bogus
393 dictionary_[key] = in_value;
702 bool ListValue::Set(size_t index, Value* in_value) {
703 if (!in_value)
710 Append(in_value);
712 DCHECK(list_[index] != in_value);
714 list_[index] = in_value;
835 void ListValue::Append(Value* in_value) {
836 DCHECK(in_value);
837 list_.push_back(in_value);
840 bool ListValue::AppendIfNotPresent(Value* in_value) {
841 DCHECK(in_value);
843 if ((*i)->Equals(in_value)) {
844 delete in_value;
848 list_.push_back(in_value);
852 bool ListValue::Insert(size_t index, Value* in_value) {
853 DCHECK(in_value);
857 list_.insert(list_.begin() + index, in_value);