OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/common/extensions/value_builder.h" | 5 #include "extensions/common/value_builder.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 | 8 |
9 // DictionaryBuilder | 9 // DictionaryBuilder |
10 | 10 |
11 DictionaryBuilder::DictionaryBuilder() : dict_(new base::DictionaryValue) {} | 11 DictionaryBuilder::DictionaryBuilder() : dict_(new base::DictionaryValue) {} |
12 | 12 |
13 DictionaryBuilder::DictionaryBuilder(const base::DictionaryValue& init) | 13 DictionaryBuilder::DictionaryBuilder(const base::DictionaryValue& init) |
14 : dict_(init.DeepCopy()) {} | 14 : dict_(init.DeepCopy()) {} |
15 | 15 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 list_->Append(in_value.Build().release()); | 93 list_->Append(in_value.Build().release()); |
94 return *this; | 94 return *this; |
95 } | 95 } |
96 | 96 |
97 ListBuilder& ListBuilder::AppendBoolean(bool in_value) { | 97 ListBuilder& ListBuilder::AppendBoolean(bool in_value) { |
98 list_->Append(new base::FundamentalValue(in_value)); | 98 list_->Append(new base::FundamentalValue(in_value)); |
99 return *this; | 99 return *this; |
100 } | 100 } |
101 | 101 |
102 } // namespace extensions | 102 } // namespace extensions |
OLD | NEW |