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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebFontAccess_h
6 #define WebFontAccess_h
7
8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebData.h"
10 #include "public/platform/WebString.h"
11 #include "public/platform/WebVector.h"
12 #include "public/platform/modules/font_access/WebFontAccessDescription.h"
13
14 namespace blink {
15 class FontAccessDescription;
16
17 using FontAccessCallbacks = WebCallbacks<WebPassOwnPtr<WebVector<WebFontAccessDe scription>>, void>;
18 using FontDataCallbacks = WebCallbacks<WebPassOwnPtr<WebData>, void>;
19
20 class WebFontAccess {
21 public:
22 virtual ~WebFontAccess() {}
23
24 // Takes ownership of the FontAccessCallbacks.
25 virtual void getFonts(FontAccessCallbacks*) = 0;
26 virtual void getFontWebData(const WebString& family, const WebString& style, FontDataCallbacks*) = 0;
27 };
28
29 } // namespace blink
30
31 #endif // WebFontAccess_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698