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

Unified Diff: ppapi/proxy/ppb_font_proxy.cc

Issue 7740038: Use macros to define pepper interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years, 3 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.h ('k') | ppapi/proxy/ppb_graphics_2d_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_font_proxy.cc
diff --git a/ppapi/proxy/ppb_font_proxy.cc b/ppapi/proxy/ppb_font_proxy.cc
index 3c42ecd30df7215ef3fa691249bf36581f3b5bfe..b6ef2db69dc56ed0f4102d5d96ade2b23fae9289 100644
--- a/ppapi/proxy/ppb_font_proxy.cc
+++ b/ppapi/proxy/ppb_font_proxy.cc
@@ -40,33 +40,15 @@ bool PPTextRunToTextRun(const PP_TextRun_Dev* run,
return true;
}
-InterfaceProxy* CreateFontProxy(Dispatcher* dispatcher,
- const void* target_interface) {
- return new PPB_Font_Proxy(dispatcher, target_interface);
-}
-
} // namespace
-PPB_Font_Proxy::PPB_Font_Proxy(Dispatcher* dispatcher,
- const void* target_interface)
- : InterfaceProxy(dispatcher, target_interface) {
+PPB_Font_Proxy::PPB_Font_Proxy(Dispatcher* dispatcher)
+ : InterfaceProxy(dispatcher) {
}
PPB_Font_Proxy::~PPB_Font_Proxy() {
}
-// static
-const InterfaceProxy::Info* PPB_Font_Proxy::GetInfo() {
- static const Info info = {
- thunk::GetPPB_Font_Thunk(),
- PPB_FONT_DEV_INTERFACE,
- INTERFACE_ID_PPB_FONT,
- false,
- &CreateFontProxy,
- };
- return &info;
-}
-
PPB_Font_FunctionAPI* PPB_Font_Proxy::AsPPB_Font_FunctionAPI() {
return this;
}
« no previous file with comments | « ppapi/proxy/ppb_font_proxy.h ('k') | ppapi/proxy/ppb_graphics_2d_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698