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

Side by Side Diff: content/common/child_process_sandbox_support_impl_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/common/DEPS ('k') | content/common/child_process_sandbox_support_impl_linux.cc » ('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 (c) 2012 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 #ifndef CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
6 #define CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
7
8 #include <stdint.h>
9
10 #include "base/posix/global_descriptors.h"
11 #include "content/public/common/child_process_sandbox_support_linux.h"
12 #include "content/public/common/content_descriptors.h"
13
14 namespace blink {
15 struct WebFallbackFont;
16 struct WebFontRenderStyle;
17 }
18
19 namespace content {
20
21 // Returns a font family which provides glyphs for the Unicode code point
22 // specified by |character|, a UTF-32 character. |preferred_locale| contains the
23 // preferred locale identifier for |character|. The instance has an empty font
24 // name if the request could not be satisfied.
25 void GetFallbackFontForCharacter(const int32_t character,
26 const char* preferred_locale,
27 blink::WebFallbackFont* family);
28
29 // Returns rendering settings for a provided font family, size, and style.
30 // |size_and_style| stores the bold setting in its least-significant bit, the
31 // italic setting in its second-least-significant bit, and holds the requested
32 // size in pixels into its remaining bits.
33 // TODO(derat): Update WebSandboxSupport's getWebFontRenderStyleForStrike()
34 // method to pass the style and size separately instead of packing them into an
35 // int.
36 void GetRenderStyleForStrike(const char* family,
37 int size_and_style,
38 blink::WebFontRenderStyle* out);
39
40 inline int GetSandboxFD() {
41 return kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor;
42 }
43
44 }; // namespace content
45
46 #endif // CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/common/child_process_sandbox_support_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698