OLD | NEW |
(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 |
OLD | NEW |