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

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

Issue 7745005: Initial work for UDP Pepper API (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: A few more changes after self-review 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/audio_config_impl.h" 8 #include "ppapi/shared_impl/audio_config_impl.h"
9 #include "ppapi/shared_impl/input_event_impl.h" 9 #include "ppapi/shared_impl/input_event_impl.h"
10 #include "ppapi/shared_impl/var.h" 10 #include "ppapi/shared_impl/var.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 PP_Instance instance) { 138 PP_Instance instance) {
139 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); 139 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference();
140 } 140 }
141 141
142 PP_Resource ResourceCreationImpl::CreateFlashTCPSocket( 142 PP_Resource ResourceCreationImpl::CreateFlashTCPSocket(
143 PP_Instance instance) { 143 PP_Instance instance) {
144 // Creating TCP socket resource at the renderer side is not supported. 144 // Creating TCP socket resource at the renderer side is not supported.
145 return 0; 145 return 0;
146 } 146 }
147 147
148 PP_Resource ResourceCreationImpl::CreateFlashUDPSocket(
149 PP_Instance instance,
150 int32_t family) {
151 // Creating UDP socket resource at the renderer side is not supported.
152 return 0;
153 }
154
148 PP_Resource ResourceCreationImpl::CreateFontObject( 155 PP_Resource ResourceCreationImpl::CreateFontObject(
149 PP_Instance instance, 156 PP_Instance instance,
150 const PP_FontDescription_Dev* description) { 157 const PP_FontDescription_Dev* description) {
151 return PPB_Font_Impl::Create(instance, *description); 158 return PPB_Font_Impl::Create(instance, *description);
152 } 159 }
153 160
154 PP_Resource ResourceCreationImpl::CreateGraphics2D( 161 PP_Resource ResourceCreationImpl::CreateGraphics2D(
155 PP_Instance instance, 162 PP_Instance instance,
156 const PP_Size& size, 163 const PP_Size& size,
157 PP_Bool is_always_opaque) { 164 PP_Bool is_always_opaque) {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 data.wheel_delta = *wheel_delta; 306 data.wheel_delta = *wheel_delta;
300 data.wheel_ticks = *wheel_ticks; 307 data.wheel_ticks = *wheel_ticks;
301 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); 308 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page);
302 309
303 return (new InputEventImpl(InputEventImpl::InitAsImpl(), 310 return (new InputEventImpl(InputEventImpl::InitAsImpl(),
304 instance, data))->GetReference(); 311 instance, data))->GetReference();
305 } 312 }
306 313
307 } // namespace ppapi 314 } // namespace ppapi
308 } // namespace webkit 315 } // namespace webkit
OLDNEW
« ppapi/thunk/ppb_flash_udp_socket_thunk.cc ('K') | « 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