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

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

Issue 2153343002: Implement support for loading font files from outside system directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test patchset to run try job Created 4 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
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 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Returns the list of locale and family name pairs for the font family at the 49 // Returns the list of locale and family name pairs for the font family at the
50 // specified index. 50 // specified index.
51 IPC_SYNC_MESSAGE_CONTROL1_1( 51 IPC_SYNC_MESSAGE_CONTROL1_1(
52 DWriteFontProxyMsg_GetFamilyNames, 52 DWriteFontProxyMsg_GetFamilyNames,
53 uint32_t /* family_index */, 53 uint32_t /* family_index */,
54 std::vector<DWriteStringPair> /* out family_names */) 54 std::vector<DWriteStringPair> /* out family_names */)
55 55
56 // Returns the list of font file paths in the system font directory that contain 56 // Returns the list of font file paths in the system font directory that contain
57 // font data for the font family at the specified index. 57 // font data for the font family at the specified index.
58 IPC_SYNC_MESSAGE_CONTROL1_1(DWriteFontProxyMsg_GetFontFiles, 58 IPC_SYNC_MESSAGE_CONTROL1_2(DWriteFontProxyMsg_GetFontFiles,
59 uint32_t /* family_index */, 59 uint32_t /* family_index */,
60 std::vector<base::string16> /* out file_paths */) 60 std::vector<base::string16> /* out file_paths */,
61 std::vector<uint32_t> /* out file_handles*/)
61 62
62 // Locates a font family that is able to render the specified text using the 63 // Locates a font family that is able to render the specified text using the
63 // specified style. If successful, the family_index and family_name will 64 // specified style. If successful, the family_index and family_name will
64 // indicate which family in the system font collection can render the requested 65 // indicate which family in the system font collection can render the requested
65 // text and the mapped_length will indicate how many characters can be 66 // text and the mapped_length will indicate how many characters can be
66 // rendered. If no font exists that can render the text, family_index will be 67 // rendered. If no font exists that can render the text, family_index will be
67 // UINT32_MAX and mapped_length will indicate how many characters cannot be 68 // UINT32_MAX and mapped_length will indicate how many characters cannot be
68 // rendered by any installed font. 69 // rendered by any installed font.
69 IPC_SYNC_MESSAGE_CONTROL5_1(DWriteFontProxyMsg_MapCharacters, 70 IPC_SYNC_MESSAGE_CONTROL5_1(DWriteFontProxyMsg_MapCharacters,
70 base::string16 /* text */, 71 base::string16 /* text */,
71 DWriteFontStyle /* font_style */, 72 DWriteFontStyle /* font_style */,
72 base::string16 /* locale_name */, 73 base::string16 /* locale_name */,
73 uint32_t /* reading_direction */, 74 uint32_t /* reading_direction */,
74 base::string16 /* base_family_name - optional */, 75 base::string16 /* base_family_name - optional */,
75 MapCharactersResult /* out */) 76 MapCharactersResult /* out */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698