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

Side by Side Diff: content/public/child/child_process_sandbox_support_linux.h

Issue 2679323006: Remove content/browser dependency on WebFontRenderStyle. (Closed)
Patch Set: merge Created 3 years, 10 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/public/child/BUILD.gn ('k') | content/public/common/BUILD.gn » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ 5 #ifndef CONTENT_PUBLIC_CHILD_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ 6 #define CONTENT_PUBLIC_CHILD_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string> 10 #include <string>
11 11
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 13 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
14 14
15 namespace content { 15 namespace content {
16 16
(...skipping 14 matching lines...) Expand all
31 // fallback_family: If not set to PP_BROWSERFONT_TRUSTED_FAMILY_DEFAULT, font 31 // fallback_family: If not set to PP_BROWSERFONT_TRUSTED_FAMILY_DEFAULT, font
32 // selection should fall back to generic Windows font names like Arial and 32 // selection should fall back to generic Windows font names like Arial and
33 // Times New Roman. 33 // Times New Roman.
34 CONTENT_EXPORT int MatchFontWithFallback( 34 CONTENT_EXPORT int MatchFontWithFallback(
35 const std::string& face, 35 const std::string& face,
36 bool bold, 36 bool bold,
37 bool italic, 37 bool italic,
38 int charset, 38 int charset,
39 PP_BrowserFont_Trusted_Family fallback_family); 39 PP_BrowserFont_Trusted_Family fallback_family);
40 40
41 // GetFontTable loads a specified font table from an open SFNT file.
42 // fd: a file descriptor to the SFNT file. The position doesn't matter.
43 // table_tag: the table tag in *big-endian* format, or 0 for the entire font.
44 // offset: offset into the table or entire font where loading should start.
45 // The offset must be between 0 and 1 GB - 1.
46 // output: a buffer of size output_length that gets the data. can be 0, in
47 // which case output_length will be set to the required size in bytes.
48 // output_length: size of output, if it's not 0.
49 //
50 // returns: true on success.
51 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table_tag, off_t offset,
52 uint8_t* output, size_t* output_length);
53
54 }; // namespace content 41 }; // namespace content
55 42
56 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ 43 #endif // CONTENT_PUBLIC_CHILD_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
OLDNEW
« no previous file with comments | « content/public/child/BUILD.gn ('k') | content/public/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698