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

Side by Side Diff: ppapi/proxy/ppapi_param_traits.h

Issue 6432001: Implement proxy for FlashMenu and Run/QuitMessageLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle NULL menus more gracefully Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
22 class HostResource;
21 struct PPBFlash_DrawGlyphs_Params; 23 struct PPBFlash_DrawGlyphs_Params;
22 struct PPBFont_DrawTextAt_Params; 24 struct PPBFont_DrawTextAt_Params;
23 struct PPBURLLoader_UpdateProgress_Params; 25 struct PPBURLLoader_UpdateProgress_Params;
24 struct SerializedDirEntry; 26 struct SerializedDirEntry;
25 struct SerializedFontDescription; 27 struct SerializedFontDescription;
26 class HostResource; 28 class SerializedFlashMenu;
27 class SerializedVar; 29 class SerializedVar;
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;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698