Chromium Code Reviews| 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..d4163703f02ab1a21c5688ed34efc86e55cdbfb8 |
| --- /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; |
|
esprehn
2016/02/09 19:29:57
add argument names for strings
Daniel Nishi
2016/02/11 00:23:51
Done.
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebFontAccess_h |