From 43beaef40b42c3afb4870043ab5720286e786ae4 Mon Sep 17 00:00:00 2001 From: "klink@google.com" Date: Fri, 22 Aug 2008 23:24:54 +0000 Subject: Adds capabilities for IPC messages of type long, for the primary purpose of accessibility related communication. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1263 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/ipc_message_utils.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/ipc_message_utils.h b/chrome/common/ipc_message_utils.h index 7939147..add9d19 100644 --- a/chrome/common/ipc_message_utils.h +++ b/chrome/common/ipc_message_utils.h @@ -158,6 +158,20 @@ struct ParamTraits { }; template <> +struct ParamTraits { + typedef long param_type; + static void Write(Message* m, const param_type& p) { + m->WriteLong(p); + } + static bool Read(const Message* m, void** iter, param_type* r) { + return m->ReadLong(iter, r); + } + static void Log(const param_type& p, std::wstring* l) { + l->append(StringPrintf(L"%l", p)); + } +}; + +template <> struct ParamTraits { typedef size_t param_type; static void Write(Message* m, const param_type& p) { -- cgit v1.1