| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class FontPlatformData; | 47 class FontPlatformData; |
| 48 class SharedBuffer; | 48 class SharedBuffer; |
| 49 | 49 |
| 50 class PLATFORM_EXPORT FontCustomPlatformData { | 50 class PLATFORM_EXPORT FontCustomPlatformData { |
| 51 USING_FAST_MALLOC(FontCustomPlatformData); | 51 USING_FAST_MALLOC(FontCustomPlatformData); |
| 52 WTF_MAKE_NONCOPYABLE(FontCustomPlatformData); | 52 WTF_MAKE_NONCOPYABLE(FontCustomPlatformData); |
| 53 public: | 53 public: |
| 54 static PassOwnPtr<FontCustomPlatformData> create(SharedBuffer*, String& otsP
arseMessage); | 54 static PassOwnPtr<FontCustomPlatformData> create(SharedBuffer*, String& otsP
arseMessage); |
| 55 ~FontCustomPlatformData(); | 55 ~FontCustomPlatformData(); |
| 56 | 56 |
| 57 FontPlatformData fontPlatformData(float size, bool bold, bool italic, FontOr
ientation = FontOrientation::Horizontal); | 57 FontPlatformData fontPlatformData(bool bold, bool italic, FontOrientation =
FontOrientation::Horizontal); |
| 58 | 58 |
| 59 static bool supportsFormat(const String&); | 59 static bool supportsFormat(const String&); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 explicit FontCustomPlatformData(PassRefPtr<SkTypeface>); | 62 explicit FontCustomPlatformData(PassRefPtr<SkTypeface>); |
| 63 RefPtr<SkTypeface> m_typeface; | 63 RefPtr<SkTypeface> m_typeface; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace blink | 66 } // namespace blink |
| 67 | 67 |
| 68 #endif // FontCustomPlatformData_h | 68 #endif // FontCustomPlatformData_h |
| OLD | NEW |