12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved.
22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file.
42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_
62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include <string>
92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include <vector>
102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
11c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)namespace ppapi {
12c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)namespace proxy {
13c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)struct SerializedTrueTypeFontDesc;
14c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)}
15c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)}
16c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)namespace content {
182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Adds font family names on the host platform to the vector of strings.
202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This function is potentially slow (the system may do a bunch of I/O) so be
222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// sure not to call this on a time-critical thread like the UI or I/O threads.
232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)void GetFontFamilies_SlowBlocking(std::vector<std::string>* font_families);
242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
25c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Adds font descriptors for fonts on the host platform in the given family to
26c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// the vector of descriptors.
27c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)//
28c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// This function is potentially slow (the system may do a bunch of I/O) so be
29c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// sure not to call this on a time-critical thread like the UI or I/O threads.
30c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)void GetFontsInFamily_SlowBlocking(
31c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    const std::string& family,
32c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    std::vector<ppapi::proxy::SerializedTrueTypeFontDesc>* fonts_in_family);
33c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}  // namespace content
352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif  // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_
37