| Index: chrome/common/spellcheck_result.cc
|
| diff --git a/chrome/common/spellcheck_result.cc b/chrome/common/spellcheck_result.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c51c44d5bbd05b39039029cf6f65304a7eb94ef2
|
| --- /dev/null
|
| +++ b/chrome/common/spellcheck_result.cc
|
| @@ -0,0 +1,38 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/common/spellcheck_result.h"
|
| +
|
| +#include "content/public/common/common_param_traits.h"
|
| +
|
| +namespace IPC {
|
| +
|
| +void ParamTraits<SpellCheckResult>::Write(Message* m, const param_type& p) {
|
| + WriteParam(m, p.type_);
|
| + WriteParam(m, p.location_);
|
| + WriteParam(m, p.length_);
|
| + WriteParam(m, p.replacement_);
|
| +}
|
| +
|
| +bool ParamTraits<SpellCheckResult>::Read(const Message* m, void** iter, param_type* r) {
|
| + return
|
| + ReadParam(m, iter, &r->type_) &&
|
| + ReadParam(m, iter, &r->location_) &&
|
| + ReadParam(m, iter, &r->length_) &&
|
| + ReadParam(m, iter, &r->replacement_);
|
| +}
|
| +
|
| +void ParamTraits<SpellCheckResult>::Log(const param_type& p, std::string* l) {
|
| + l->append("(");
|
| + LogParam(p.type_, l);
|
| + l->append(", ");
|
| + LogParam(p.location_, l);
|
| + l->append(", ");
|
| + LogParam(p.length_, l);
|
| + l->append(", ");
|
| + LogParam(p.replacement_, l);
|
| + l->append(")");
|
| +}
|
| +
|
| +} // namespace IPC
|
|
|