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

Unified Diff: content/public/common/webkit_param_traits.h

Issue 9368052: Removed WebTextCheckingResult legacy API use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Elimianted ParamTrais<WebString>. 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: content/public/common/webkit_param_traits.h
diff --git a/content/public/common/webkit_param_traits.h b/content/public/common/webkit_param_traits.h
index 786b8ec9383575b9c68244e8e3ca4c88b5187742..3452534efbf5aaa65111af8257ceea8b88a48bee 100644
--- a/content/public/common/webkit_param_traits.h
+++ b/content/public/common/webkit_param_traits.h
@@ -20,6 +20,7 @@
#include "content/common/content_export.h"
#include "ipc/ipc_message_utils.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
#include "webkit/blob/blob_data.h"
#include "webkit/glue/npruntime_util.h"
@@ -232,6 +233,19 @@ struct ParamTraits<WebInputEventPointer> {
};
template <>
+struct SimilarTypeTraits<WebKit::WebTextCheckingType> {
+ typedef int Type;
+};
+
+template <>
+struct CONTENT_EXPORT ParamTraits<WebKit::WebTextCheckingResult> {
+ typedef WebKit::WebTextCheckingResult param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
struct SimilarTypeTraits<WebKit::WebTextDirection> {
typedef int Type;
};

Powered by Google App Engine
This is Rietveld 408576698