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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 9700028: Add a private PPB_Talk_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | 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 "webkit/plugins/ppapi/resource_creation_impl.h" 5 #include "webkit/plugins/ppapi/resource_creation_impl.h"
6 6
7 #include "ppapi/c/pp_size.h" 7 #include "ppapi/c/pp_size.h"
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" 10 #include "ppapi/shared_impl/ppb_input_event_shared.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 PPB_NetworkMonitor_Callback callback, 255 PPB_NetworkMonitor_Callback callback,
256 void* user_data) { 256 void* user_data) {
257 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data); 257 return PPB_NetworkMonitor_Private_Impl::Create(instance, callback, user_data);
258 } 258 }
259 259
260 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, 260 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance,
261 PP_Bool vertical) { 261 PP_Bool vertical) {
262 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); 262 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical));
263 } 263 }
264 264
265 PP_Resource ResourceCreationImpl::CreateTalk(PP_Instance /* instance */) {
266 // Not implemented in-process.
267 return 0;
268 }
269
265 PP_Resource ResourceCreationImpl::CreateResourceArray( 270 PP_Resource ResourceCreationImpl::CreateResourceArray(
266 PP_Instance instance, 271 PP_Instance instance,
267 const PP_Resource elements[], 272 const PP_Resource elements[],
268 uint32_t size) { 273 uint32_t size) {
269 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( 274 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared(
270 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); 275 ::ppapi::OBJECT_IS_IMPL, instance, elements, size);
271 return object->GetReference(); 276 return object->GetReference();
272 } 277 }
273 278
274 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( 279 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate(
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 data.wheel_delta = *wheel_delta; 347 data.wheel_delta = *wheel_delta;
343 data.wheel_ticks = *wheel_ticks; 348 data.wheel_ticks = *wheel_ticks;
344 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); 349 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page);
345 350
346 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, 351 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL,
347 instance, data))->GetReference(); 352 instance, data))->GetReference();
348 } 353 }
349 354
350 } // namespace ppapi 355 } // namespace ppapi
351 } // namespace webkit 356 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698