| 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 "dbus/property.h" | 5 #include "dbus/property.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 template <> | 316 template <> |
| 317 void Property<uint32>::AppendSetValueToWriter(MessageWriter* writer) { | 317 void Property<uint32>::AppendSetValueToWriter(MessageWriter* writer) { |
| 318 writer->AppendVariantOfUint32(set_value_); | 318 writer->AppendVariantOfUint32(set_value_); |
| 319 } | 319 } |
| 320 | 320 |
| 321 // | 321 // |
| 322 // Property<int64> specialization. | 322 // Property<int64> specialization. |
| 323 // | 323 // |
| 324 | 324 |
| 325 template <> | 325 template <> |
| 326 Property<int64>::Property() : value_(0) { | 326 Property<int64>::Property() : value_(0), set_value_(0) { |
| 327 } | 327 } |
| 328 | 328 |
| 329 template <> | 329 template <> |
| 330 bool Property<int64>::PopValueFromReader(MessageReader* reader) { | 330 bool Property<int64>::PopValueFromReader(MessageReader* reader) { |
| 331 return reader->PopVariantOfInt64(&value_); | 331 return reader->PopVariantOfInt64(&value_); |
| 332 } | 332 } |
| 333 | 333 |
| 334 template <> | 334 template <> |
| 335 void Property<int64>::AppendSetValueToWriter(MessageWriter* writer) { | 335 void Property<int64>::AppendSetValueToWriter(MessageWriter* writer) { |
| 336 writer->AppendVariantOfInt64(set_value_); | 336 writer->AppendVariantOfInt64(set_value_); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 template <> | 442 template <> |
| 443 void Property<std::vector<ObjectPath> >::AppendSetValueToWriter( | 443 void Property<std::vector<ObjectPath> >::AppendSetValueToWriter( |
| 444 MessageWriter* writer) { | 444 MessageWriter* writer) { |
| 445 MessageWriter variant_writer(NULL); | 445 MessageWriter variant_writer(NULL); |
| 446 writer->OpenVariant("ao", &variant_writer); | 446 writer->OpenVariant("ao", &variant_writer); |
| 447 variant_writer.AppendArrayOfObjectPaths(set_value_); | 447 variant_writer.AppendArrayOfObjectPaths(set_value_); |
| 448 writer->CloseContainer(&variant_writer); | 448 writer->CloseContainer(&variant_writer); |
| 449 } | 449 } |
| 450 | 450 |
| 451 } // namespace dbus | 451 } // namespace dbus |
| OLD | NEW |