| 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/input_event_impl.h" | 8 #include "ppapi/shared_impl/input_event_impl.h" |
| 9 #include "ppapi/shared_impl/var.h" | 9 #include "ppapi/shared_impl/var.h" |
| 10 #include "webkit/plugins/ppapi/common.h" | 10 #include "webkit/plugins/ppapi/common.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 PP_Instance instance) { | 136 PP_Instance instance) { |
| 137 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); | 137 return (new PPB_Flash_NetConnector_Impl(instance))->GetReference(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 PP_Resource ResourceCreationImpl::CreateFlashTCPSocket( | 140 PP_Resource ResourceCreationImpl::CreateFlashTCPSocket( |
| 141 PP_Instance instance) { | 141 PP_Instance instance) { |
| 142 // Creating TCP socket resource at the renderer side is not supported. | 142 // Creating TCP socket resource at the renderer side is not supported. |
| 143 return 0; | 143 return 0; |
| 144 } | 144 } |
| 145 | 145 |
| 146 PP_Resource ResourceCreationImpl::CreateFlashUDPSocket( |
| 147 PP_Instance instance, |
| 148 int32_t family) { |
| 149 // Creating UDP socket resource at the renderer side is not supported. |
| 150 return 0; |
| 151 } |
| 152 |
| 146 PP_Resource ResourceCreationImpl::CreateFontObject( | 153 PP_Resource ResourceCreationImpl::CreateFontObject( |
| 147 PP_Instance instance, | 154 PP_Instance instance, |
| 148 const PP_FontDescription_Dev* description) { | 155 const PP_FontDescription_Dev* description) { |
| 149 return PPB_Font_Impl::Create(instance, *description); | 156 return PPB_Font_Impl::Create(instance, *description); |
| 150 } | 157 } |
| 151 | 158 |
| 152 PP_Resource ResourceCreationImpl::CreateGraphics2D( | 159 PP_Resource ResourceCreationImpl::CreateGraphics2D( |
| 153 PP_Instance instance, | 160 PP_Instance instance, |
| 154 const PP_Size& size, | 161 const PP_Size& size, |
| 155 PP_Bool is_always_opaque) { | 162 PP_Bool is_always_opaque) { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 data.event_modifiers = modifiers; | 297 data.event_modifiers = modifiers; |
| 291 data.wheel_delta = *wheel_delta; | 298 data.wheel_delta = *wheel_delta; |
| 292 data.wheel_ticks = *wheel_ticks; | 299 data.wheel_ticks = *wheel_ticks; |
| 293 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 300 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
| 294 | 301 |
| 295 return (new PPB_InputEvent_Impl(instance, data))->GetReference(); | 302 return (new PPB_InputEvent_Impl(instance, data))->GetReference(); |
| 296 } | 303 } |
| 297 | 304 |
| 298 } // namespace ppapi | 305 } // namespace ppapi |
| 299 } // namespace webkit | 306 } // namespace webkit |
| OLD | NEW |