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 "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
9 #include "ppapi/proxy/host_resource.h" | 9 #include "ppapi/proxy/host_resource.h" |
10 #include "ppapi/proxy/interface_id.h" | 10 #include "ppapi/proxy/interface_id.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 data.event_modifiers = modifiers; | 238 data.event_modifiers = modifiers; |
239 data.mouse_button = mouse_button; | 239 data.mouse_button = mouse_button; |
240 data.mouse_position = *mouse_position; | 240 data.mouse_position = *mouse_position; |
241 data.mouse_click_count = click_count; | 241 data.mouse_click_count = click_count; |
242 | 242 |
243 return PPB_InputEvent_Proxy::CreateProxyResource(instance, data); | 243 return PPB_InputEvent_Proxy::CreateProxyResource(instance, data); |
244 } | 244 } |
245 | 245 |
246 PP_Resource ResourceCreationProxy::CreateGraphics3D( | 246 PP_Resource ResourceCreationProxy::CreateGraphics3D( |
247 PP_Instance instance, | 247 PP_Instance instance, |
248 PP_Config3D_Dev config, | |
249 PP_Resource share_context, | 248 PP_Resource share_context, |
250 const int32_t* attrib_list) { | 249 const int32_t* attrib_list) { |
251 return PPB_Graphics3D_Proxy::CreateProxyResource( | 250 return PPB_Graphics3D_Proxy::CreateProxyResource( |
252 instance, config, share_context, attrib_list); | 251 instance, share_context, attrib_list); |
253 } | 252 } |
254 | 253 |
255 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 254 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
256 PP_Instance instance, | 255 PP_Instance instance, |
257 PP_Config3D_Dev config, | |
258 PP_Resource share_context, | 256 PP_Resource share_context, |
259 const int32_t* attrib_list) { | 257 const int32_t* attrib_list) { |
260 // Not proxied. The raw creation function is used only in the implementation | 258 // Not proxied. The raw creation function is used only in the implementation |
261 // of the proxy on the host side. | 259 // of the proxy on the host side. |
262 return 0; | 260 return 0; |
263 } | 261 } |
264 | 262 |
265 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | 263 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, |
266 PP_Bool vertical) { | 264 PP_Bool vertical) { |
267 NOTIMPLEMENTED(); // Not proxied yet. | 265 NOTIMPLEMENTED(); // Not proxied yet. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); | 391 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); |
394 #else | 392 #else |
395 *result_image_handle = ImageData::HandleFromInt(handle); | 393 *result_image_handle = ImageData::HandleFromInt(handle); |
396 #endif | 394 #endif |
397 } | 395 } |
398 } | 396 } |
399 } | 397 } |
400 | 398 |
401 } // namespace proxy | 399 } // namespace proxy |
402 } // namespace pp | 400 } // namespace pp |
OLD | NEW |