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

Unified 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698