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

Unified Diff: third_party/WebKit/public/platform/modules/font_access/WebFontAccess.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: Created 4 years, 11 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/public/platform/modules/font_access/WebFontAccess.h
diff --git a/third_party/WebKit/public/platform/modules/font_access/WebFontAccess.h b/third_party/WebKit/public/platform/modules/font_access/WebFontAccess.h
new file mode 100644
index 0000000000000000000000000000000000000000..b519fabda7c0a165bbb05abfa8b5680f4f937311
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/font_access/WebFontAccess.h
@@ -0,0 +1,31 @@
+// 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 WebFontAccess_h
+#define WebFontAccess_h
+
+#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebData.h"
+#include "public/platform/WebString.h"
+#include "public/platform/WebVector.h"
+#include "public/platform/modules/font_access/WebFontAccessDescription.h"
+
+namespace blink {
+class FontAccessDescription;
+
+using FontAccessCallbacks = WebCallbacks<WebPassOwnPtr<WebVector<WebFontAccessDescription*>>, void>;
+using FontDataCallbacks = WebCallbacks<WebPassOwnPtr<WebData>, void>;
+
+class WebFontAccess {
+public:
+ virtual ~WebFontAccess() {}
+
+ // Takes ownership of the FontAccessCallbacks.
+ virtual void getFonts(FontAccessCallbacks*) = 0;
+ virtual void getFontWebData(const WebString&, const WebString&, FontDataCallbacks*) = 0;
+};
+
+} // namespace blink
+
+#endif // WebFontAccess_h

Powered by Google App Engine
This is Rietveld 408576698