Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: content/common/dwrite_font_proxy_messages.h

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/drag_messages.h ('k') | content/common/file_utilities_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/common/drag_messages.h ('k') | content/common/file_utilities_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698