| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |