Index: third_party/WebKit/Source/core/css/LocalFontFace.h |
diff --git a/third_party/WebKit/Source/core/css/LocalFontFace.h b/third_party/WebKit/Source/core/css/LocalFontFace.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a2e6e2c0cc633c8330085dcd18a386bae185060f |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/css/LocalFontFace.h |
@@ -0,0 +1,43 @@ |
+// Copyright 2016 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 LocalFontFace_h |
+#define LocalFontFace_h |
+ |
+#include "bindings/core/v8/ScriptPromise.h" |
+#include "core/css/FontFace.h" |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+class FontFaceDescriptors; |
+ |
+class LocalFontFace : public FontFace { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ |
+public: |
+ static PassRefPtrWillBeRawPtr<LocalFontFace> create(ExecutionContext*, const AtomicString& family, const AtomicString& styleName, const AtomicString& fullName, StringOrArrayBufferOrArrayBufferView&, const FontFaceDescriptors&); |
+ explicit LocalFontFace(ExecutionContext*, const AtomicString& family, const AtomicString& styleName, const AtomicString& fullName, const FontFaceDescriptors&); |
+ |
+ ScriptPromise binaryData(ScriptState*) const; |
+ |
+ String styleName() const |
+ { |
+ return m_style; |
+ } |
+ |
+ String fullName() const |
+ { |
+ return m_fullName; |
+ } |
+ |
+private: |
+ AtomicString m_style; |
+ AtomicString m_fullName; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |