| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file provides a builders for DictionaryValue and ListValue. These | 5 // This file provides a builders for DictionaryValue and ListValue. These |
| 6 // aren't specific to extensions and could move up to base/ if there's interest | 6 // aren't specific to extensions and could move up to base/ if there's interest |
| 7 // from other sub-projects. | 7 // from other sub-projects. |
| 8 // | 8 // |
| 9 // The general pattern is to write: | 9 // The general pattern is to write: |
| 10 // | 10 // |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 ListBuilder& Append(ListBuilder& in_value); | 93 ListBuilder& Append(ListBuilder& in_value); |
| 94 | 94 |
| 95 // Named differently because overload resolution is too eager to | 95 // Named differently because overload resolution is too eager to |
| 96 // convert implicitly to bool. | 96 // convert implicitly to bool. |
| 97 ListBuilder& AppendBoolean(bool in_value); | 97 ListBuilder& AppendBoolean(bool in_value); |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 scoped_ptr<base::ListValue> list_; | 100 scoped_ptr<base::ListValue> list_; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace extensions | 103 } // namespace extensions |
| 104 | 104 |
| 105 #endif // EXTENSIONS_COMMON_VALUE_BUILDER_H_ | 105 #endif // EXTENSIONS_COMMON_VALUE_BUILDER_H_ |
| OLD | NEW |