| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/common/spellcheck_result.h" |
| 6 |
| 7 #include "content/public/common/common_param_traits.h" |
| 8 |
| 9 namespace IPC { |
| 10 |
| 11 void ParamTraits<SpellCheckResult>::Write(Message* m, const param_type& p) { |
| 12 WriteParam(m, p.type_); |
| 13 WriteParam(m, p.location_); |
| 14 WriteParam(m, p.length_); |
| 15 WriteParam(m, p.replacement_); |
| 16 } |
| 17 |
| 18 bool ParamTraits<SpellCheckResult>::Read(const Message* m, void** iter, param_ty
pe* r) { |
| 19 return |
| 20 ReadParam(m, iter, &r->type_) && |
| 21 ReadParam(m, iter, &r->location_) && |
| 22 ReadParam(m, iter, &r->length_) && |
| 23 ReadParam(m, iter, &r->replacement_); |
| 24 } |
| 25 |
| 26 void ParamTraits<SpellCheckResult>::Log(const param_type& p, std::string* l) { |
| 27 l->append("("); |
| 28 LogParam(p.type_, l); |
| 29 l->append(", "); |
| 30 LogParam(p.location_, l); |
| 31 l->append(", "); |
| 32 LogParam(p.length_, l); |
| 33 l->append(", "); |
| 34 LogParam(p.replacement_, l); |
| 35 l->append(")"); |
| 36 } |
| 37 |
| 38 } // namespace IPC |
| OLD | NEW |