Chromium Code Reviews| 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..f3b29ee8db46de5e95df9e585042bd6878782be0 |
| --- /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> createLocalFontFace(ExecutionContext*, const AtomicString& family, const AtomicString& styleName, const AtomicString& fullName, StringOrArrayBufferOrArrayBufferView&, const FontFaceDescriptors&); |
|
esprehn
2016/02/09 19:29:57
create(), no need for the type name in the method
Daniel Nishi
2016/02/11 00:23:51
Done.
|
| + explicit LocalFontFace(ExecutionContext*, const AtomicString& family, const AtomicString& styleName, const AtomicString& fullName, const FontFaceDescriptors&); |
| + |
| + ScriptPromise binaryData(ScriptState*) const; |
| + |
| + String styleName() const |
| + { |
| + return m_style; |
| + }; |
|
esprehn
2016/02/09 19:29:57
remove ;
Daniel Nishi
2016/02/11 00:23:51
Done.
|
| + |
| + String fullName() const |
| + { |
| + return m_fullName; |
| + }; |
|
esprehn
2016/02/09 19:29:57
ditto
Daniel Nishi
2016/02/11 00:23:51
Done.
|
| + |
| +private: |
| + AtomicString m_style; |
| + AtomicString m_fullName; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |