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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |