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

Side by Side Diff: chrome/common/spellcheck_result.cc

Issue 9368052: Removed WebTextCheckingResult legacy API use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a build break on Mac. Created 8 years, 10 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698