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

Side by Side Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 13820003: Pepper: Autogenerate thunk for PPB_TrueTypeFont. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nit comment in gamepad for presubmit Created 7 years, 8 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 unified diff | Download patch
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/tests/test_truetype_font.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/proxy/resource_creation_proxy.h" 5 #include "ppapi/proxy/resource_creation_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_size.h" 8 #include "ppapi/c/pp_size.h"
9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
10 #include "ppapi/proxy/audio_input_resource.h" 10 #include "ppapi/proxy/audio_input_resource.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 PP_Instance instance, 148 PP_Instance instance,
149 const PP_Resource elements[], 149 const PP_Resource elements[],
150 uint32_t size) { 150 uint32_t size) {
151 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( 151 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared(
152 OBJECT_IS_PROXY, instance, elements, size); 152 OBJECT_IS_PROXY, instance, elements, size);
153 return object->GetReference(); 153 return object->GetReference();
154 } 154 }
155 155
156 PP_Resource ResourceCreationProxy::CreateTrueTypeFont( 156 PP_Resource ResourceCreationProxy::CreateTrueTypeFont(
157 PP_Instance instance, 157 PP_Instance instance,
158 const PP_TrueTypeFontDesc_Dev& desc) { 158 const PP_TrueTypeFontDesc_Dev* desc) {
159 return (new TrueTypeFontResource(GetConnection(), 159 return (new TrueTypeFontResource(GetConnection(),
160 instance, desc))->GetReference(); 160 instance, *desc))->GetReference();
161 161
162 } 162 }
163 163
164 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { 164 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) {
165 return PPB_URLLoader_Proxy::CreateProxyResource(instance); 165 return PPB_URLLoader_Proxy::CreateProxyResource(instance);
166 } 166 }
167 167
168 PP_Resource ResourceCreationProxy::CreateURLRequestInfo( 168 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(
169 PP_Instance instance) { 169 PP_Instance instance) {
170 return (new URLRequestInfoResource( 170 return (new URLRequestInfoResource(
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 399 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
400 return false; 400 return false;
401 } 401 }
402 402
403 Connection ResourceCreationProxy::GetConnection() { 403 Connection ResourceCreationProxy::GetConnection() {
404 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 404 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
405 } 405 }
406 406
407 } // namespace proxy 407 } // namespace proxy
408 } // namespace ppapi 408 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/tests/test_truetype_font.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698