- add sources.
[platform/framework/web/crosswalk.git] / src / content / browser / renderer_host / pepper / pepper_truetype_font_list.h
1 // Copyright (c) 2013 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 CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_
7
8 #include <string>
9 #include <vector>
10
11 namespace ppapi {
12 namespace proxy {
13 struct SerializedTrueTypeFontDesc;
14 }
15 }
16
17 namespace content {
18
19 // Adds font family names on the host platform to the vector of strings.
20 //
21 // This function is potentially slow (the system may do a bunch of I/O) so be
22 // sure not to call this on a time-critical thread like the UI or I/O threads.
23 void GetFontFamilies_SlowBlocking(std::vector<std::string>* font_families);
24
25 // Adds font descriptors for fonts on the host platform in the given family to
26 // the vector of descriptors.
27 //
28 // This function is potentially slow (the system may do a bunch of I/O) so be
29 // sure not to call this on a time-critical thread like the UI or I/O threads.
30 void GetFontsInFamily_SlowBlocking(
31     const std::string& family,
32     std::vector<ppapi::proxy::SerializedTrueTypeFontDesc>* fonts_in_family);
33
34 }  // namespace content
35
36 #endif  // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_