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

Side by Side Diff: content/renderer/fontmgr_proxy.h

Issue 132113015: IPC interface for font management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Match final interface and cleanup usage. Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 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_RENDERER_FONTMGR_PROXY_H
6 #define CONTENT_RENDERER_FONTMGR_PROXY_H
7
8 #include "base/values.h"
9 #include "third_party/skia/include/ports/SkRemotableFontMgr.h"
10
11 class SkDataTable;
12 class SkStreamAsset;
13
14 namespace content {
15
16 class CONTENT_EXPORT FontMgrProxy : public SkRemotableFontMgr {
17 public:
18 // If we support multiple of these at the same time, this constructor
19 // could take a parameter stating which one to talk to.
20 // There could even be some statics for getting the available ones.
21 FontMgrProxy() { }
22 virtual ~FontMgrProxy() { }
23
24 virtual SkDataTable* getFamilyNames() const OVERRIDE;
25
26 virtual SkRemotableFontIdentitySet* getIndex(int family_index) const OVERRIDE;
27
28 virtual SkFontIdentity matchIndexStyle(int family_index,
29 const SkFontStyle&) const OVERRIDE;
30
31 virtual SkRemotableFontIdentitySet* matchName(
32 const char family_name[]) const OVERRIDE;
33
34 virtual SkFontIdentity matchNameStyle(const char family_name[],
35 const SkFontStyle&) const OVERRIDE;
36
37 virtual SkFontIdentity matchNameStyleCharacter(const char family_name[],
38 const SkFontStyle&,
39 const char bpc47[],
40 SkUnichar character) const
41 OVERRIDE;
42
43 virtual SkStreamAsset* getData(int data_id) const OVERRIDE;
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_RENDERER_FONTMGR_PROXY_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698