| 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
|
|
|