Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef LocalFontFace_h | |
| 6 #define LocalFontFace_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptPromise.h" | |
| 9 #include "core/css/FontFace.h" | |
| 10 #include "wtf/PassRefPtr.h" | |
| 11 #include "wtf/RefCounted.h" | |
| 12 #include "wtf/text/WTFString.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 class FontFaceDescriptors; | |
| 16 | |
| 17 class LocalFontFace : public FontFace { | |
| 18 DEFINE_WRAPPERTYPEINFO(); | |
| 19 | |
| 20 public: | |
| 21 static PassRefPtrWillBeRawPtr<LocalFontFace> createLocalFontFace(ExecutionCo ntext*, const AtomicString& family, const AtomicString& styleName, const AtomicS tring& fullName, StringOrArrayBufferOrArrayBufferView&, const FontFaceDescriptor s&); | |
|
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.
| |
| 22 explicit LocalFontFace(ExecutionContext*, const AtomicString& family, const AtomicString& styleName, const AtomicString& fullName, const FontFaceDescriptors &); | |
| 23 | |
| 24 ScriptPromise binaryData(ScriptState*) const; | |
| 25 | |
| 26 String styleName() const | |
| 27 { | |
| 28 return m_style; | |
| 29 }; | |
|
esprehn
2016/02/09 19:29:57
remove ;
Daniel Nishi
2016/02/11 00:23:51
Done.
| |
| 30 | |
| 31 String fullName() const | |
| 32 { | |
| 33 return m_fullName; | |
| 34 }; | |
|
esprehn
2016/02/09 19:29:57
ditto
Daniel Nishi
2016/02/11 00:23:51
Done.
| |
| 35 | |
| 36 private: | |
| 37 AtomicString m_style; | |
| 38 AtomicString m_fullName; | |
| 39 }; | |
| 40 | |
| 41 } // namespace blink | |
| 42 | |
| 43 #endif | |
| OLD | NEW |