Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: dbus/property.h

Issue 10963037: DBus: declare property specializations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef DBUS_PROPERTY_H_ 5 #ifndef DBUS_PROPERTY_H_
6 #define DBUS_PROPERTY_H_ 6 #define DBUS_PROPERTY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 void ReplaceValue(const T& value) { value_ = value; } 392 void ReplaceValue(const T& value) { value_ = value; }
393 393
394 private: 394 private:
395 // Current cached value of the property. 395 // Current cached value of the property.
396 T value_; 396 T value_;
397 397
398 // Replacement value of the property. 398 // Replacement value of the property.
399 T set_value_; 399 T set_value_;
400 }; 400 };
401 401
402 template <> Property<uint8>::Property();
403 template <> bool Property<uint8>::PopValueFromReader(MessageReader* reader);
404 template <> void Property<uint8>::AppendSetValueToWriter(MessageWriter* writer);
405
406 template <> Property<bool>::Property();
407 template <> bool Property<bool>::PopValueFromReader(MessageReader* reader);
408 template <> void Property<bool>::AppendSetValueToWriter(MessageWriter* writer);
409
410 template <> Property<int16>::Property();
411 template <> bool Property<int16>::PopValueFromReader(MessageReader* reader);
412 template <> void Property<int16>::AppendSetValueToWriter(MessageWriter* writer);
413
414 template <> Property<uint16>::Property();
415 template <> bool Property<uint16>::PopValueFromReader(MessageReader* reader);
416 template <> void Property<uint16>::AppendSetValueToWriter(
417 MessageWriter* writer);
418
419 template <> Property<int32>::Property();
420 template <> bool Property<int32>::PopValueFromReader(MessageReader* reader);
421 template <> void Property<int32>::AppendSetValueToWriter(MessageWriter* writer);
422
423 template <> Property<uint32>::Property();
424 template <> bool Property<uint32>::PopValueFromReader(MessageReader* reader);
425 template <> void Property<uint32>::AppendSetValueToWriter(
426 MessageWriter* writer);
427
428 template <> Property<int64>::Property();
429 template <> bool Property<int64>::PopValueFromReader(MessageReader* reader);
430 template <> void Property<int64>::AppendSetValueToWriter(MessageWriter* writer);
431
432 template <> Property<uint64>::Property();
433 template <> bool Property<uint64>::PopValueFromReader(MessageReader* reader);
434 template <> void Property<uint64>::AppendSetValueToWriter(
435 MessageWriter* writer);
436
437 template <> Property<double>::Property();
438 template <> bool Property<double>::PopValueFromReader(MessageReader* reader);
439 template <> void Property<double>::AppendSetValueToWriter(
440 MessageWriter* writer);
441
442 template <> bool Property<std::string>::PopValueFromReader(
443 MessageReader* reader);
444 template <> void Property<std::string>::AppendSetValueToWriter(
445 MessageWriter* writer);
446
447 template <> bool Property<ObjectPath>::PopValueFromReader(
448 MessageReader* reader);
449 template <> void Property<ObjectPath>::AppendSetValueToWriter(
450 MessageWriter* writer);
451
452 template <> bool Property<std::vector<std::string> >::PopValueFromReader(
453 MessageReader* reader);
454 template <> void Property<std::vector<std::string> >::AppendSetValueToWriter(
455 MessageWriter* writer);
456
457 template <> bool Property<std::vector<ObjectPath> >::PopValueFromReader(
458 MessageReader* reader);
459 template <> void Property<std::vector<ObjectPath> >::AppendSetValueToWriter(
460 MessageWriter* writer);
461
402 } // namespace dbus 462 } // namespace dbus
403 463
404 #endif // DBUS_PROPERTY_H_ 464 #endif // DBUS_PROPERTY_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698