OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 SerializedFontDescription font_desc; | 79 SerializedFontDescription font_desc; |
80 uint32_t color; | 80 uint32_t color; |
81 PP_Point position; | 81 PP_Point position; |
82 PP_Rect clip; | 82 PP_Rect clip; |
83 float transformation[3][3]; | 83 float transformation[3][3]; |
84 PP_Bool allow_subpixel_aa; | 84 PP_Bool allow_subpixel_aa; |
85 std::vector<uint16_t> glyph_indices; | 85 std::vector<uint16_t> glyph_indices; |
86 std::vector<PP_Point> glyph_advances; | 86 std::vector<PP_Point> glyph_advances; |
87 }; | 87 }; |
88 | 88 |
89 struct PPBAudio_NotifyAudioStreamCreated_Params { | |
90 ppapi::HostResource audio_id; | |
91 int32_t result_code; // Will be != PP_OK on failure | |
92 IPC::PlatformFileForTransit socket_handle; | |
93 base::SharedMemoryHandle handle; | |
94 int32_t length; | |
95 }; | |
96 | |
97 struct PPBURLLoader_UpdateProgress_Params { | 89 struct PPBURLLoader_UpdateProgress_Params { |
98 PP_Instance instance; | 90 PP_Instance instance; |
99 ppapi::HostResource resource; | 91 ppapi::HostResource resource; |
100 int64_t bytes_sent; | 92 int64_t bytes_sent; |
101 int64_t total_bytes_to_be_sent; | 93 int64_t total_bytes_to_be_sent; |
102 int64_t bytes_received; | 94 int64_t bytes_received; |
103 int64_t total_bytes_to_be_received; | 95 int64_t total_bytes_to_be_received; |
104 }; | 96 }; |
105 | 97 |
106 struct PPPVideoCapture_Buffer { | 98 struct PPPVideoCapture_Buffer { |
107 ppapi::HostResource resource; | 99 ppapi::HostResource resource; |
108 uint32_t size; | 100 uint32_t size; |
109 base::SharedMemoryHandle handle; | 101 base::SharedMemoryHandle handle; |
110 }; | 102 }; |
111 | 103 |
112 #if defined(OS_WIN) | 104 #if defined(OS_WIN) |
113 typedef HANDLE ImageHandle; | 105 typedef HANDLE ImageHandle; |
114 #elif defined(OS_MACOSX) || defined(OS_ANDROID) | 106 #elif defined(OS_MACOSX) || defined(OS_ANDROID) |
115 typedef base::SharedMemoryHandle ImageHandle; | 107 typedef base::SharedMemoryHandle ImageHandle; |
116 #else | 108 #else |
117 // On X Windows this is a SysV shared memory key. | 109 // On X Windows this is a SysV shared memory key. |
118 typedef int ImageHandle; | 110 typedef int ImageHandle; |
119 #endif | 111 #endif |
120 | 112 |
121 } // namespace proxy | 113 } // namespace proxy |
122 } // namespace ppapi | 114 } // namespace ppapi |
123 | 115 |
124 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 116 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
OLD | NEW |