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 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 14 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
15 #include "ppapi/c/pp_bool.h" | 15 #include "ppapi/c/pp_bool.h" |
16 #include "ppapi/c/pp_instance.h" | 16 #include "ppapi/c/pp_instance.h" |
17 #include "ppapi/c/pp_point.h" | 17 #include "ppapi/c/pp_point.h" |
18 #include "ppapi/c/pp_rect.h" | 18 #include "ppapi/c/pp_rect.h" |
19 #include "ppapi/c/private/ppb_net_address_private.h" | |
20 #include "ppapi/c/private/ppb_network_list_private.h" | |
21 #include "ppapi/proxy/ppapi_proxy_export.h" | 19 #include "ppapi/proxy/ppapi_proxy_export.h" |
22 #include "ppapi/shared_impl/host_resource.h" | 20 #include "ppapi/shared_impl/host_resource.h" |
23 | 21 |
24 class Pickle; | 22 class Pickle; |
25 struct PP_FontDescription_Dev; | 23 struct PP_FontDescription_Dev; |
26 struct PP_BrowserFont_Trusted_Description; | 24 struct PP_BrowserFont_Trusted_Description; |
27 | 25 |
28 namespace ppapi { | 26 namespace ppapi { |
29 namespace proxy { | 27 namespace proxy { |
30 | 28 |
(...skipping 21 matching lines...) Expand all Loading... |
52 std::string face; | 50 std::string face; |
53 int32_t family; | 51 int32_t family; |
54 uint32_t size; | 52 uint32_t size; |
55 int32_t weight; | 53 int32_t weight; |
56 PP_Bool italic; | 54 PP_Bool italic; |
57 PP_Bool small_caps; | 55 PP_Bool small_caps; |
58 int32_t letter_spacing; | 56 int32_t letter_spacing; |
59 int32_t word_spacing; | 57 int32_t word_spacing; |
60 }; | 58 }; |
61 | 59 |
62 struct PPAPI_PROXY_EXPORT SerializedNetworkInfo { | |
63 SerializedNetworkInfo(); | |
64 ~SerializedNetworkInfo(); | |
65 | |
66 std::string name; | |
67 PP_NetworkListType_Private type; | |
68 PP_NetworkListState_Private state; | |
69 std::vector<PP_NetAddress_Private> addresses; | |
70 std::string display_name; | |
71 int mtu; | |
72 }; | |
73 typedef std::vector<SerializedNetworkInfo> SerializedNetworkList; | |
74 | |
75 struct PPAPI_PROXY_EXPORT SerializedTrueTypeFontDesc { | 60 struct PPAPI_PROXY_EXPORT SerializedTrueTypeFontDesc { |
76 SerializedTrueTypeFontDesc(); | 61 SerializedTrueTypeFontDesc(); |
77 ~SerializedTrueTypeFontDesc(); | 62 ~SerializedTrueTypeFontDesc(); |
78 | 63 |
79 // Sets this to correspond to the contents of a PP_TrueTypeFontDesc_Dev. | 64 // Sets this to correspond to the contents of a PP_TrueTypeFontDesc_Dev. |
80 // | 65 // |
81 // The reference count of the desc.family PP_Var will be unchanged and the | 66 // The reference count of the desc.family PP_Var will be unchanged and the |
82 // caller is responsible for releasing it. | 67 // caller is responsible for releasing it. |
83 void SetFromPPTrueTypeFontDesc(const PP_TrueTypeFontDesc_Dev& desc); | 68 void SetFromPPTrueTypeFontDesc(const PP_TrueTypeFontDesc_Dev& desc); |
84 | 69 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // On legacy X Windows this is a SysV shared memory key. | 124 // On legacy X Windows this is a SysV shared memory key. |
140 typedef int ImageHandle; | 125 typedef int ImageHandle; |
141 #else | 126 #else |
142 typedef base::SharedMemoryHandle ImageHandle; | 127 typedef base::SharedMemoryHandle ImageHandle; |
143 #endif | 128 #endif |
144 | 129 |
145 } // namespace proxy | 130 } // namespace proxy |
146 } // namespace ppapi | 131 } // namespace ppapi |
147 | 132 |
148 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 133 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
OLD | NEW |