Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Side by Side Diff: third_party/WebKit/Source/modules/fontaccess/FontAccessDescription.h

Issue 1615133002: Implement API for accessing fonts installed locally on the system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Mounir's comments. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698