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

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

Issue 8036036: Add Pepper API to use UDP (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 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) 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 // Creating UDP socket resource at the renderer side is not supported.
151 return 0;
152 }
153
148 PP_Resource ResourceCreationImpl::CreateFontObject( 154 PP_Resource ResourceCreationImpl::CreateFontObject(
149 PP_Instance instance, 155 PP_Instance instance,
150 const PP_FontDescription_Dev* description) { 156 const PP_FontDescription_Dev* description) {
151 return PPB_Font_Impl::Create(instance, *description); 157 return PPB_Font_Impl::Create(instance, *description);
152 } 158 }
153 159
154 PP_Resource ResourceCreationImpl::CreateGraphics2D( 160 PP_Resource ResourceCreationImpl::CreateGraphics2D(
155 PP_Instance instance, 161 PP_Instance instance,
156 const PP_Size& size, 162 const PP_Size& size,
157 PP_Bool is_always_opaque) { 163 PP_Bool is_always_opaque) {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 data.wheel_delta = *wheel_delta; 307 data.wheel_delta = *wheel_delta;
302 data.wheel_ticks = *wheel_ticks; 308 data.wheel_ticks = *wheel_ticks;
303 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); 309 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page);
304 310
305 return (new InputEventImpl(InputEventImpl::InitAsImpl(), 311 return (new InputEventImpl(InputEventImpl::InitAsImpl(),
306 instance, data))->GetReference(); 312 instance, data))->GetReference();
307 } 313 }
308 314
309 } // namespace ppapi 315 } // namespace ppapi
310 } // namespace webkit 316 } // 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