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

Unified Diff: ppapi/shared_impl/function_group_base.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 | « ppapi/proxy/ppb_font_proxy.cc ('k') | ppapi/thunk/ppb_font_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/function_group_base.h
===================================================================
--- ppapi/shared_impl/function_group_base.h (revision 85766)
+++ ppapi/shared_impl/function_group_base.h (working copy)
@@ -8,6 +8,7 @@
namespace ppapi {
namespace thunk {
+class PPB_Font_FunctionAPI;
class ResourceCreationAPI;
}
@@ -15,12 +16,17 @@
public:
// Dynamic casting for this object. Returns the pointer to the given type if
// it's supported.
+ virtual thunk::PPB_Font_FunctionAPI* AsFont_FunctionAPI() { return NULL; }
virtual thunk::ResourceCreationAPI* AsResourceCreation() { return NULL; }
template <typename T> T* GetAs() { return NULL; }
};
template<>
+inline thunk::PPB_Font_FunctionAPI* FunctionGroupBase::GetAs() {
+ return AsFont_FunctionAPI();
+}
+template<>
inline ppapi::thunk::ResourceCreationAPI* FunctionGroupBase::GetAs() {
return AsResourceCreation();
}
« no previous file with comments | « ppapi/proxy/ppb_font_proxy.cc ('k') | ppapi/thunk/ppb_font_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698