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

Unified Diff: third_party/WebKit/Source/core/css/LocalFontFace.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 Nasko. 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFaceSet.idl ('k') | third_party/WebKit/Source/core/css/LocalFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698