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

Unified Diff: ppapi/cpp/dev/font_dev.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 | « ppapi/cpp/dev/font_dev.h ('k') | ppapi/proxy/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/font_dev.cc
===================================================================
--- ppapi/cpp/dev/font_dev.cc (revision 85766)
+++ ppapi/cpp/dev/font_dev.cc (working copy)
@@ -118,6 +118,15 @@
return *this;
}
+// static
+Var Font_Dev::GetFontFamilies(Instance* instance) {
+ if (!has_interface<PPB_Font_Dev>())
+ return Var();
+ return Var(Var::PassRef(),
+ get_interface<PPB_Font_Dev>()->GetFontFamilies(
+ instance->pp_instance()));
+}
+
bool Font_Dev::Describe(FontDescription_Dev* description,
PP_FontMetrics_Dev* metrics) const {
if (!has_interface<PPB_Font_Dev>())
« no previous file with comments | « ppapi/cpp/dev/font_dev.h ('k') | ppapi/proxy/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698