| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Computer, Inc. | 2 * Copyright (C) 2007 Apple Computer, Inc. |
| 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. | 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class SkTypeface; | 42 class SkTypeface; |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class FontPlatformData; | 46 class FontPlatformData; |
| 47 class SharedBuffer; | 47 class SharedBuffer; |
| 48 | 48 |
| 49 class PLATFORM_EXPORT FontCustomPlatformData { | 49 class PLATFORM_EXPORT FontCustomPlatformData { |
| 50 WTF_MAKE_NONCOPYABLE(FontCustomPlatformData); | 50 WTF_MAKE_NONCOPYABLE(FontCustomPlatformData); |
| 51 public: | 51 public: |
| 52 static PassOwnPtr<FontCustomPlatformData> create(SharedBuffer*); | 52 static PassOwnPtr<FontCustomPlatformData> create(SharedBuffer*, String& otsP
arseMessage); |
| 53 ~FontCustomPlatformData(); | 53 ~FontCustomPlatformData(); |
| 54 | 54 |
| 55 FontPlatformData fontPlatformData(float size, bool bold, bool italic, FontOr
ientation = FontOrientation::Horizontal); | 55 FontPlatformData fontPlatformData(float size, bool bold, bool italic, FontOr
ientation = FontOrientation::Horizontal); |
| 56 | 56 |
| 57 static bool supportsFormat(const String&); | 57 static bool supportsFormat(const String&); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 explicit FontCustomPlatformData(PassRefPtr<SkTypeface>); | 60 explicit FontCustomPlatformData(PassRefPtr<SkTypeface>); |
| 61 RefPtr<SkTypeface> m_typeface; | 61 RefPtr<SkTypeface> m_typeface; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 #endif // FontCustomPlatformData_h | 66 #endif // FontCustomPlatformData_h |
| OLD | NEW |