diff options
author | klink@google.com <klink@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-22 23:24:54 +0000 |
---|---|---|
committer | klink@google.com <klink@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-22 23:24:54 +0000 |
commit | 43beaef40b42c3afb4870043ab5720286e786ae4 (patch) | |
tree | 3abd0dd136552ad3055abfa2ca9a476463d8711c /chrome/common | |
parent | 77c40528d35beef9559b2e3412f04b472b995c4e (diff) | |
download | chromium_src-43beaef40b42c3afb4870043ab5720286e786ae4.zip chromium_src-43beaef40b42c3afb4870043ab5720286e786ae4.tar.gz chromium_src-43beaef40b42c3afb4870043ab5720286e786ae4.tar.bz2 |
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
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/ipc_message_utils.h | 14 |
1 files changed, 14 insertions, 0 deletions
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<int> { }; template <> +struct ParamTraits<long> { + 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<size_t> { typedef size_t param_type; static void Write(Message* m, const param_type& p) { |