OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include <utility> | |
6 #include <vector> | |
7 | |
8 #include "base/strings/string16.h" | |
9 #include "content/common/content_export.h" | |
10 #include "ipc/ipc_message_macros.h" | |
11 | |
12 #undef IPC_MESSAGE_EXPORT | |
13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | |
14 #define IPC_MESSAGE_START DWriteFontProxyMsgStart | |
15 | |
16 // The macros can't handle a complex template declaration, so we typedef it. | |
17 typedef std::pair<base::string16, base::string16> DWriteStringPair; | |
18 | |
19 // Locates the index of the specified font family within the system collection. | |
20 IPC_SYNC_MESSAGE_CONTROL1_1(DWriteFontProxyMsg_FindFamily, | |
21 base::string16 /* family_name */, | |
22 uint32_t /* out index */) | |
23 | |
24 // Returns the number of font families in the system collection. | |
25 IPC_SYNC_MESSAGE_CONTROL0_1(DWriteFontProxyMsg_GetFamilyCount, | |
26 uint32_t /* out count */) | |
27 | |
28 // Returns the list of locale and family name pairs for the font family at the | |
29 // specified index. | |
30 IPC_SYNC_MESSAGE_CONTROL1_1( | |
31 DWriteFontProxyMsg_GetFamilyNames, | |
32 uint32_t /* family_index */, | |
33 std::vector<DWriteStringPair> /* out family_names */) | |
34 | |
35 // Returns the list of font file paths in the system font directory that contain | |
36 // font data for the font family at the specified index. | |
37 IPC_SYNC_MESSAGE_CONTROL1_1(DWriteFontProxyMsg_GetFontFiles, | |
38 uint32_t /* family_index */, | |
39 std::vector<base::string16> /* out file_paths */) | |
OLD | NEW |