| Index: content/public/common/common_param_traits.cc
|
| diff --git a/content/public/common/common_param_traits.cc b/content/public/common/common_param_traits.cc
|
| index 656ad68c7607760c088f7aac32376e53fc4ef4be..e504586dc571df61421d4b7e7b0ff7685d5fc597 100644
|
| --- a/content/public/common/common_param_traits.cc
|
| +++ b/content/public/common/common_param_traits.cc
|
| @@ -5,6 +5,7 @@
|
| #include "content/public/common/common_param_traits.h"
|
|
|
| #include "content/public/common/content_constants.h"
|
| +#include "content/public/common/draggable_region.h"
|
| #include "content/public/common/referrer.h"
|
| #include "net/base/host_port_pair.h"
|
| #include "net/base/upload_data.h"
|
| @@ -512,6 +513,27 @@ void ParamTraits<SkBitmap>::Log(const SkBitmap& p, std::string* l) {
|
| l->append("<SkBitmap>");
|
| }
|
|
|
| +void ParamTraits<content::DraggableRegion>::Write(
|
| + Message* m, const param_type& p) {
|
| + WriteParam(m, p.label);
|
| + WriteParam(m, p.bounds);
|
| + WriteParam(m, p.clip);
|
| +}
|
| +
|
| +bool ParamTraits<content::DraggableRegion>::Read(
|
| + const Message* m, PickleIterator* iter, param_type* r) {
|
| + return ReadParam(m, iter, &r->label) &&
|
| + ReadParam(m, iter, &r->bounds) &&
|
| + ReadParam(m, iter, &r->clip);
|
| +}
|
| +
|
| +void ParamTraits<content::DraggableRegion>::Log(
|
| + const param_type& p, std::string* l) {
|
| + l->append("(");
|
| + LogParam(p.label, l);
|
| + l->append(")");
|
| +}
|
| +
|
| } // namespace IPC
|
|
|
| // Generate param traits write methods.
|
|
|