diff options
Diffstat (limited to 'content/browser/renderer_host/pepper/pepper_truetype_font_list.h')
-rw-r--r-- | content/browser/renderer_host/pepper/pepper_truetype_font_list.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/content/browser/renderer_host/pepper/pepper_truetype_font_list.h b/content/browser/renderer_host/pepper/pepper_truetype_font_list.h new file mode 100644 index 0000000..c0ce782 --- /dev/null +++ b/content/browser/renderer_host/pepper/pepper_truetype_font_list.h @@ -0,0 +1,21 @@ +// Copyright (c) 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_ +#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_ + +#include <string> +#include <vector> + +namespace content { + +// Adds font family names on the host platform to the vector of strings. +// +// This function is potentially slow (the system may do a bunch of I/O) so be +// sure not to call this on a time-critical thread like the UI or I/O threads. +void GetFontFamilies_SlowBlocking(std::vector<std::string>* font_families); + +} // namespace content + +#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TRUETYPE_FONT_LIST_H_ |