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

Unified Diff: webkit/plugins/ppapi/resource_tracker.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
Index: webkit/plugins/ppapi/resource_tracker.cc
===================================================================
--- webkit/plugins/ppapi/resource_tracker.cc (revision 85766)
+++ webkit/plugins/ppapi/resource_tracker.cc (working copy)
@@ -15,6 +15,7 @@
#include "webkit/plugins/ppapi/plugin_module.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
#include "webkit/plugins/ppapi/resource.h"
+#include "webkit/plugins/ppapi/ppb_font_impl.h"
viettrungluu 2011/05/18 21:07:46 alphabetical order
#include "webkit/plugins/ppapi/resource_creation_impl.h"
#include "webkit/plugins/ppapi/var.h"
@@ -254,8 +255,11 @@
if (function_proxies_[id].get())
return function_proxies_[id].get();
+ // TODO(brettw) we need a better system for doing this.
if (id == ::pp::proxy::INTERFACE_ID_RESOURCE_CREATION)
function_proxies_[id].reset(new ResourceCreationImpl());
+ else if (id == ::pp::proxy::INTERFACE_ID_PPB_FONT)
+ function_proxies_[id].reset(new PPB_Font_FunctionImpl);
return function_proxies_[id].get();
}
« webkit/plugins/ppapi/ppb_font_impl.h ('K') | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698