pepper_truetype_font_list.h revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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 11namespace ppapi { 12namespace proxy { 13struct SerializedTrueTypeFontDesc; 14} 15} 16 17namespace 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. 23void 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. 30void 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_ 37