OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 5 #ifndef PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
6 #define PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 6 #define PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
7 | 7 |
8 #include "ipc/ipc_message_utils.h" | 8 #include "ipc/ipc_message_utils.h" |
9 #include "ipc/ipc_platform_file.h" | 9 #include "ipc/ipc_platform_file.h" |
10 #include "ppapi/c/pp_completion_callback.h" | 10 #include "ppapi/c/pp_completion_callback.h" |
11 #include "ppapi/c/pp_input_event.h" | 11 #include "ppapi/c/pp_input_event.h" |
12 #include "ppapi/c/pp_rect.h" | 12 #include "ppapi/c/pp_rect.h" |
13 #include "ppapi/c/pp_var.h" | 13 #include "ppapi/c/pp_var.h" |
14 | 14 |
15 struct PP_FileInfo_Dev; | 15 struct PP_FileInfo_Dev; |
16 struct PP_ObjectProperty; | 16 struct PP_ObjectProperty; |
17 struct PP_Flash_Menu; | |
17 | 18 |
18 namespace pp { | 19 namespace pp { |
19 namespace proxy { | 20 namespace proxy { |
20 | 21 |
21 struct PPBFlash_DrawGlyphs_Params; | 22 struct PPBFlash_DrawGlyphs_Params; |
22 struct PPBFont_DrawTextAt_Params; | 23 struct PPBFont_DrawTextAt_Params; |
23 struct PPBURLLoader_UpdateProgress_Params; | 24 struct PPBURLLoader_UpdateProgress_Params; |
24 struct SerializedDirEntry; | 25 struct SerializedDirEntry; |
25 struct SerializedFontDescription; | 26 struct SerializedFontDescription; |
26 class HostResource; | 27 class HostResource; |
27 class SerializedVar; | 28 class SerializedVar; |
29 class SerializedFlashMenu; | |
viettrungluu
2011/02/08 18:18:09
Nit: alphabetical order. While you're there, you c
piman
2011/02/15 02:11:22
Done.
| |
28 | 30 |
29 } // namespace proxy | 31 } // namespace proxy |
30 } // namespace pp | 32 } // namespace pp |
31 | 33 |
32 namespace IPC { | 34 namespace IPC { |
33 | 35 |
34 template<> | 36 template<> |
35 struct ParamTraits<PP_Bool> { | 37 struct ParamTraits<PP_Bool> { |
36 typedef PP_Bool param_type; | 38 typedef PP_Bool param_type; |
37 static void Write(Message* m, const param_type& p); | 39 static void Write(Message* m, const param_type& p); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 }; | 146 }; |
145 | 147 |
146 template<> | 148 template<> |
147 struct ParamTraits< std::vector<pp::proxy::SerializedVar> > { | 149 struct ParamTraits< std::vector<pp::proxy::SerializedVar> > { |
148 typedef std::vector<pp::proxy::SerializedVar> param_type; | 150 typedef std::vector<pp::proxy::SerializedVar> param_type; |
149 static void Write(Message* m, const param_type& p); | 151 static void Write(Message* m, const param_type& p); |
150 static bool Read(const Message* m, void** iter, param_type* r); | 152 static bool Read(const Message* m, void** iter, param_type* r); |
151 static void Log(const param_type& p, std::string* l); | 153 static void Log(const param_type& p, std::string* l); |
152 }; | 154 }; |
153 | 155 |
156 template<> | |
157 struct ParamTraits<pp::proxy::SerializedFlashMenu> { | |
158 typedef pp::proxy::SerializedFlashMenu param_type; | |
159 static void Write(Message* m, const param_type& p); | |
160 static bool Read(const Message* m, void** iter, param_type* r); | |
161 static void Log(const param_type& p, std::string* l); | |
162 }; | |
163 | |
154 } // namespace IPC | 164 } // namespace IPC |
155 | 165 |
156 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 166 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
OLD | NEW |