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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_
13 struct SerializedTrueTypeFontDesc;
19 // Adds font family names on the host platform to the vector of strings.
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);
25 // Adds font descriptors for fonts on the host platform in the given family to
26 // the vector of descriptors.
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);
34 } // namespace content
36 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_