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 FontAccessDescription_h | |
| 6 #define FontAccessDescription_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "platform/heap/Handle.h" | |
| 10 #include "public/platform/modules/font_access/WebFontAccessDescription.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class FontAccessDescription | |
|
esprehn
2016/01/26 20:26:45
Where is this class used?
| |
| 15 : public GarbageCollectedFinalized<FontAccessDescription>, public ScriptWrap pable { | |
| 16 DEFINE_WRAPPERTYPEINFO(); | |
| 17 | |
| 18 public: | |
| 19 using WebType = WebFontAccessDescription; | |
| 20 static FontAccessDescription* create(PassOwnPtr<WebFontAccessDescription> de scriptor) | |
| 21 { | |
| 22 return new FontAccessDescription(descriptor); | |
| 23 } | |
| 24 | |
| 25 explicit FontAccessDescription(PassOwnPtr<WebFontAccessDescription> descript or) | |
| 26 : m_descriptor(descriptor) | |
| 27 { | |
| 28 } | |
| 29 | |
| 30 virtual ~FontAccessDescription() {} | |
| 31 | |
| 32 String family() const { return m_descriptor->family; } | |
| 33 String style() const { return m_descriptor->style; } | |
| 34 | |
| 35 DEFINE_INLINE_TRACE() {} | |
| 36 | |
| 37 private: | |
| 38 OwnPtr<WebFontAccessDescription> m_descriptor; | |
|
esprehn
2016/01/26 20:26:45
This should just be two String family and style, n
| |
| 39 }; | |
| 40 | |
| 41 } // namespace blink | |
| 42 | |
| 43 #endif // FontAccessDescription_h | |
| OLD | NEW |