Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1080)

Unified Diff: content/common/font_list.h

Issue 7044012: Support getting the font list in Pepper. This currently only works out of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/font_list_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/font_list.h
===================================================================
--- content/common/font_list.h (revision 0)
+++ content/common/font_list.h (revision 0)
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 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_COMMON_FONT_LIST_H_
+#define CONTENT_COMMON_FONT_LIST_H_
+
+class ListValue;
+
+namespace content {
+
+// Retrieves the fonts available on the current platform and returns them.
+// The caller will own the returned pointer. Each entry will be a list of
+// two strings, the first being the font family, and the second being the
+// localized name.
+//
+// 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.
+//
+// Most callers will want to use the GetFontListAsync function in
+// content/browser/font_list_async.h which does an asynchronous call.
+ListValue* GetFontList_SlowBlocking();
+
+} // namespace content
+
+#endif // CONTENT_COMMON_FONT_LIST_H_
Property changes on: content/common/font_list.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/font_list_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698