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> StringPair; |
| 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 /* out index */) |
| 23 |
| 24 // Returns the number of font families in the system collection. |
| 25 IPC_SYNC_MESSAGE_CONTROL0_1(DWriteFontProxyMsg_GetFamilyCount, |
| 26 uint32 /* 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(DWriteFontProxyMsg_GetFamilyNames, |
| 31 uint32 /* family_index */, |
| 32 std::vector<StringPair> /* out family_names */) |
| 33 |
| 34 // Returns the list of font file paths in the system font directory that contain |
| 35 // font data for the font family at the specified index. |
| 36 IPC_SYNC_MESSAGE_CONTROL1_1(DWriteFontProxyMsg_GetFontFiles, |
| 37 uint32 /* family_index */, |
| 38 std::vector<base::string16> /* out file_paths */) |
OLD | NEW |