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 ppapi::HostResource resource; | |
79 int file_system_type; // One of PP_FileSystemType values. | |
80 SerializedVar path; | |
81 SerializedVar name; | |
82 }; | |
83 | |
84 struct PPBFlash_DrawGlyphs_Params { | 73 struct PPBFlash_DrawGlyphs_Params { |
85 PPBFlash_DrawGlyphs_Params(); | 74 PPBFlash_DrawGlyphs_Params(); |
86 ~PPBFlash_DrawGlyphs_Params(); | 75 ~PPBFlash_DrawGlyphs_Params(); |
87 | 76 |
88 PP_Instance instance; | 77 PP_Instance instance; |
89 ppapi::HostResource image_data; | 78 ppapi::HostResource image_data; |
90 SerializedFontDescription font_desc; | 79 SerializedFontDescription font_desc; |
91 uint32_t color; | 80 uint32_t color; |
92 PP_Point position; | 81 PP_Point position; |
93 PP_Rect clip; | 82 PP_Rect clip; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 typedef base::SharedMemoryHandle ImageHandle; | 114 typedef base::SharedMemoryHandle ImageHandle; |
126 #else | 115 #else |
127 // On X Windows this is a SysV shared memory key. | 116 // On X Windows this is a SysV shared memory key. |
128 typedef int ImageHandle; | 117 typedef int ImageHandle; |
129 #endif | 118 #endif |
130 | 119 |
131 } // namespace proxy | 120 } // namespace proxy |
132 } // namespace ppapi | 121 } // namespace ppapi |
133 | 122 |
134 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 123 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
OLD | NEW |