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..e66d1e13d88e10e2c9b0262af249ffe01a8a4bf7 |
--- /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& family, const WebString& style, FontDataCallbacks*) = 0; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WebFontAccess_h |