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

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

Issue 1378353006: Implementation of dwrite font proxy and removal of dwrite font cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More codereview fixes. Jumped the gun on previous patchset. Created 5 years, 1 month 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/dwrite_font_platform_win_unittest.cc ('k') | content/common/font_warmup_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 */)
OLDNEW
« no previous file with comments | « content/common/dwrite_font_platform_win_unittest.cc ('k') | content/common/font_warmup_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698