OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_COMMON_FONT_LIST_H_ |
| 6 #define CONTENT_COMMON_FONT_LIST_H_ |
| 7 |
| 8 class ListValue; |
| 9 |
| 10 namespace content { |
| 11 |
| 12 // Retrieves the fonts available on the current platform and returns them. |
| 13 // The caller will own the returned pointer. Each entry will be a list of |
| 14 // two strings, the first being the font family, and the second being the |
| 15 // localized name. |
| 16 // |
| 17 // This function is potentially slow (the system may do a bunch of I/O) so be |
| 18 // sure not to call this on a time-critical thread like the UI or I/O threads. |
| 19 // |
| 20 // Most callers will want to use the GetFontListAsync function in the browser |
| 21 // directory which converts this to an asynchronous call. |
| 22 ListValue* GetFontList_SlowBlocking(); |
| 23 |
| 24 } // namespace content |
| 25 |
| 26 #endif // CONTENT_COMMON_FONT_LIST_H_ |
OLD | NEW |