| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // return values. This struct encapsulates everything in one place. | 74 // return values. This struct encapsulates everything in one place. |
| 75 struct PPBFileRef_CreateInfo { | 75 struct PPBFileRef_CreateInfo { |
| 76 PPBFileRef_CreateInfo(); // Initializes to 0. | 76 PPBFileRef_CreateInfo(); // Initializes to 0. |
| 77 | 77 |
| 78 HostResource resource; | 78 HostResource resource; |
| 79 int file_system_type; // One of PP_FileSystemType_Dev values. | 79 int file_system_type; // One of PP_FileSystemType_Dev values. |
| 80 SerializedVar path; | 80 SerializedVar path; |
| 81 SerializedVar name; | 81 SerializedVar name; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 // Since there are so many parameters, DrawTextAt requires this separate | |
| 85 // structure. This includes everything but the font name. Because the font name | |
| 86 // is a var, it's much more convenient to use the normal way of passing a | |
| 87 // PP_Var. | |
| 88 struct PPBFont_DrawTextAt_Params { | |
| 89 HostResource font; | |
| 90 HostResource image_data; | |
| 91 PP_Bool text_is_rtl; | |
| 92 PP_Bool override_direction; | |
| 93 PP_Point position; | |
| 94 uint32_t color; | |
| 95 PP_Rect clip; | |
| 96 bool clip_is_null; | |
| 97 PP_Bool image_data_is_opaque; | |
| 98 }; | |
| 99 | |
| 100 struct PPBFlash_DrawGlyphs_Params { | 84 struct PPBFlash_DrawGlyphs_Params { |
| 101 PPBFlash_DrawGlyphs_Params(); | 85 PPBFlash_DrawGlyphs_Params(); |
| 102 ~PPBFlash_DrawGlyphs_Params(); | 86 ~PPBFlash_DrawGlyphs_Params(); |
| 103 | 87 |
| 104 PP_Instance instance; | 88 PP_Instance instance; |
| 105 HostResource image_data; | 89 HostResource image_data; |
| 106 SerializedFontDescription font_desc; | 90 SerializedFontDescription font_desc; |
| 107 uint32_t color; | 91 uint32_t color; |
| 108 PP_Point position; | 92 PP_Point position; |
| 109 PP_Rect clip; | 93 PP_Rect clip; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 135 typedef base::SharedMemoryHandle ImageHandle; | 119 typedef base::SharedMemoryHandle ImageHandle; |
| 136 #else | 120 #else |
| 137 // On X Windows this is a SysV shared memory key. | 121 // On X Windows this is a SysV shared memory key. |
| 138 typedef int ImageHandle; | 122 typedef int ImageHandle; |
| 139 #endif | 123 #endif |
| 140 | 124 |
| 141 } // namespace proxy | 125 } // namespace proxy |
| 142 } // namespace pp | 126 } // namespace pp |
| 143 | 127 |
| 144 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 128 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
| OLD | NEW |