| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ |
| 6 #define CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ |
| 7 |
| 5 #include <stdint.h> | 8 #include <stdint.h> |
| 6 | 9 |
| 7 #include <utility> | 10 #include <utility> |
| 8 #include <vector> | 11 #include <vector> |
| 9 | 12 |
| 10 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 11 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 12 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
| 13 #include "ipc/ipc_platform_file.h" | 16 #include "ipc/ipc_platform_file.h" |
| 14 | 17 |
| 15 #undef IPC_MESSAGE_EXPORT | 18 #undef IPC_MESSAGE_EXPORT |
| 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 17 #define IPC_MESSAGE_START DWriteFontProxyMsgStart | 20 #define IPC_MESSAGE_START DWriteFontProxyMsgStart |
| 18 | 21 |
| 19 #ifndef CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ | 22 #ifndef INTERNAL_CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ |
| 20 #define CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ | 23 #define INTERNAL_CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ |
| 21 | 24 |
| 22 // The macros can't handle a complex template declaration, so we typedef it. | 25 // The macros can't handle a complex template declaration, so we typedef it. |
| 23 typedef std::pair<base::string16, base::string16> DWriteStringPair; | 26 typedef std::pair<base::string16, base::string16> DWriteStringPair; |
| 24 | 27 |
| 25 #endif // CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ | 28 #endif // INTERNAL_CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ |
| 26 | 29 |
| 27 IPC_STRUCT_BEGIN(DWriteFontStyle) | 30 IPC_STRUCT_BEGIN(DWriteFontStyle) |
| 28 IPC_STRUCT_MEMBER(uint16_t, font_weight) | 31 IPC_STRUCT_MEMBER(uint16_t, font_weight) |
| 29 IPC_STRUCT_MEMBER(uint8_t, font_slant) | 32 IPC_STRUCT_MEMBER(uint8_t, font_slant) |
| 30 IPC_STRUCT_MEMBER(uint8_t, font_stretch) | 33 IPC_STRUCT_MEMBER(uint8_t, font_stretch) |
| 31 IPC_STRUCT_END() | 34 IPC_STRUCT_END() |
| 32 | 35 |
| 33 IPC_STRUCT_BEGIN(MapCharactersResult) | 36 IPC_STRUCT_BEGIN(MapCharactersResult) |
| 34 IPC_STRUCT_MEMBER(uint32_t, family_index) | 37 IPC_STRUCT_MEMBER(uint32_t, family_index) |
| 35 IPC_STRUCT_MEMBER(base::string16, family_name) | 38 IPC_STRUCT_MEMBER(base::string16, family_name) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // rendered. If no font exists that can render the text, family_index will be | 72 // rendered. If no font exists that can render the text, family_index will be |
| 70 // UINT32_MAX and mapped_length will indicate how many characters cannot be | 73 // UINT32_MAX and mapped_length will indicate how many characters cannot be |
| 71 // rendered by any installed font. | 74 // rendered by any installed font. |
| 72 IPC_SYNC_MESSAGE_CONTROL5_1(DWriteFontProxyMsg_MapCharacters, | 75 IPC_SYNC_MESSAGE_CONTROL5_1(DWriteFontProxyMsg_MapCharacters, |
| 73 base::string16 /* text */, | 76 base::string16 /* text */, |
| 74 DWriteFontStyle /* font_style */, | 77 DWriteFontStyle /* font_style */, |
| 75 base::string16 /* locale_name */, | 78 base::string16 /* locale_name */, |
| 76 uint32_t /* reading_direction */, | 79 uint32_t /* reading_direction */, |
| 77 base::string16 /* base_family_name - optional */, | 80 base::string16 /* base_family_name - optional */, |
| 78 MapCharactersResult /* out */) | 81 MapCharactersResult /* out */) |
| 82 |
| 83 #endif // CONTENT_COMMON_DWRITE_FONT_PROXY_MESSAGES_H_ |
| OLD | NEW |