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

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

Issue 132113015: IPC interface for font management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Checkpoint 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_COMMON_FONTMGR_PROXY_H
brettw 2014/03/11 21:38:15 Can this file be in content/renderer? I think if w
bungeman-chromium 2014/03/13 22:33:31 Done. Hmmm... yes. As of right now the only user w
6 #define CONTENT_COMMON_FONTMGR_PROXY_H
7
8 #include "base/values.h"
9 #include "content/renderer/render_thread_impl.h"
10 #include "third_party/skia/include/ports/SkFontMgr_indirect.h"
11
12 class SkData;
13 class SkDataTable;
14
15 namespace content {
16
17 class CONTENT_EXPORT FontMgrProxy : public SkRemotableFontMgr {
18 public:
19 // If we support multiple of these at the same time, this constructor
20 // could take a parameter stating which one to talk to.
21 // There could even be some statics for getting the available ones.
22 FontMgrProxy() { }
23 virtual ~FontMgrProxy() { }
24
25 virtual SkDataTable* getFamilyNames() const OVERRIDE;
26 virtual SkRemotableFontIdentitySet* getIndexIdentities(int index) const OVERRI DE;
brettw 2014/03/11 21:38:15 Long lines (in this case I'd normally just wrap th
bungeman-chromium 2014/03/13 22:33:31 Done.
27 virtual SkFontIdentity matchIndexStyle(int familyIndex, const SkFontStyle&) co nst OVERRIDE;
28
29 virtual SkRemotableFontIdentitySet* matchName(const char familyName[]) const O VERRIDE;
30 virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontSty le&) const OVERRIDE;
31 virtual SkFontIdentity matchNameStyleCharacter(const char familyName[],
32 const SkFontStyle&,
33 const char bpc47[],
34 uint32_t character) const
35 OVERRIDE;
36
37 virtual SkStream* getData(int dataId) const OVERRIDE;
38
39 private:
40 typedef SkRemotableFontMgr INHERITED;
brettw 2014/03/11 21:38:15 I'm not sure what this is for.
bungeman-chromium 2014/03/13 22:33:31 Done. Left-over from the initial implementation. S
41 };
42
43 } // namespace content
44
45 #endif // SKIA_EXT_FONTMGR_PROXY_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698