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

Unified Diff: content/common/font_list_gtk.cc

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/common/font_list.h ('k') | content/common/font_list_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/font_list_gtk.cc
===================================================================
--- content/common/font_list_gtk.cc (revision 85492)
+++ content/common/font_list_gtk.cc (working copy)
@@ -2,17 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/options/font_settings_utils.h"
+#include "content/common/font_list.h"
+#include <pango/pango.h>
+#include <pango/pangocairo.h>
+
#include <set>
#include <string>
-#include <pango/pango.h>
-#include <pango/pangocairo.h>
-
#include "base/values.h"
-ListValue* FontSettingsUtilities::GetFontsList() {
+namespace content {
+
+ListValue* GetFontList_SlowBlocking() {
ListValue* font_list = new ListValue;
PangoFontMap* font_map = ::pango_cairo_font_map_get_default();
@@ -38,6 +40,4 @@
return font_list;
}
-void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) {
- // nothing to do for GTK.
-}
+} // namespace content
« no previous file with comments | « content/common/font_list.h ('k') | content/common/font_list_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698