diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.h b/chromium/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.h new file mode 100644 index 00000000000..766bbbb3b32 --- /dev/null +++ b/chromium/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.h @@ -0,0 +1,30 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BinaryDataFontFaceSource_h +#define BinaryDataFontFaceSource_h + +#include "core/css/CSSFontFaceSource.h" +#include "wtf/OwnPtr.h" + +namespace WebCore { + +class FontCustomPlatformData; +class SharedBuffer; + +class BinaryDataFontFaceSource FINAL : public CSSFontFaceSource { +public: + explicit BinaryDataFontFaceSource(SharedBuffer*); + virtual ~BinaryDataFontFaceSource(); + virtual bool isValid() const OVERRIDE; + +private: + virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OVERRIDE; + + OwnPtr<FontCustomPlatformData> m_customPlatformData; +}; + +} // namespace WebCore + +#endif |