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

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

Issue 6519057: Implement proxying for FileRef and FileChooser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix ppapi tests to account for query change 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/ppb_url_loader_proxy.cc ('k') | ppapi/proxy/serialized_structs.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_SERIALIZED_STRUCTS_H_ 5 #ifndef PPAPI_PROXY_SERIALIZED_STRUCTS_H_
6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 PP_Bool small_caps; 63 PP_Bool small_caps;
64 int32_t letter_spacing; 64 int32_t letter_spacing;
65 int32_t word_spacing; 65 int32_t word_spacing;
66 }; 66 };
67 67
68 struct SerializedDirEntry { 68 struct SerializedDirEntry {
69 std::string name; 69 std::string name;
70 bool is_dir; 70 bool is_dir;
71 }; 71 };
72 72
73 // FileRefs are created in a number of places and they include a number of
74 // return values. This struct encapsulates everything in one place.
75 struct PPBFileRef_CreateInfo {
76 PPBFileRef_CreateInfo(); // Initializes to 0.
77
78 HostResource resource;
79 int file_system_type; // One of PP_FileSystemType_Dev values.
80 SerializedVar path;
81 SerializedVar name;
82 };
83
73 // Since there are so many parameters, DrawTextAt requires this separate 84 // Since there are so many parameters, DrawTextAt requires this separate
74 // structure. This includes everything but the font name. Because the font name 85 // structure. This includes everything but the font name. Because the font name
75 // is a var, it's much more convenient to use the normal way of passing a 86 // is a var, it's much more convenient to use the normal way of passing a
76 // PP_Var. 87 // PP_Var.
77 struct PPBFont_DrawTextAt_Params { 88 struct PPBFont_DrawTextAt_Params {
78 HostResource font; 89 HostResource font;
79 HostResource image_data; 90 HostResource image_data;
80 PP_Bool text_is_rtl; 91 PP_Bool text_is_rtl;
81 PP_Bool override_direction; 92 PP_Bool override_direction;
82 PP_Point position; 93 PP_Point position;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 typedef base::SharedMemoryHandle ImageHandle; 135 typedef base::SharedMemoryHandle ImageHandle;
125 #else 136 #else
126 // On X Windows this is a SysV shared memory key. 137 // On X Windows this is a SysV shared memory key.
127 typedef int ImageHandle; 138 typedef int ImageHandle;
128 #endif 139 #endif
129 140
130 } // namespace proxy 141 } // namespace proxy
131 } // namespace pp 142 } // namespace pp
132 143
133 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 144 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_loader_proxy.cc ('k') | ppapi/proxy/serialized_structs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698