OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "native_client/src/shared/ppapi_proxy/browser_globals.h" | 5 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 return ppb; | 311 return ppb; |
312 } | 312 } |
313 | 313 |
314 const PPB_Var* PPBVarInterface() { | 314 const PPB_Var* PPBVarInterface() { |
315 static const PPB_Var* ppb = | 315 static const PPB_Var* ppb = |
316 static_cast<const PPB_Var*>( | 316 static_cast<const PPB_Var*>( |
317 GetBrowserInterfaceSafe(PPB_VAR_INTERFACE)); | 317 GetBrowserInterfaceSafe(PPB_VAR_INTERFACE)); |
318 return ppb; | 318 return ppb; |
319 } | 319 } |
320 | 320 |
321 const PPB_VarArrayBuffer_Dev* PPBVarArrayBufferInterface() { | 321 const PPB_VarArrayBuffer* PPBVarArrayBufferInterface() { |
322 static const PPB_VarArrayBuffer_Dev* ppb = | 322 static const PPB_VarArrayBuffer* ppb = |
323 static_cast<const PPB_VarArrayBuffer_Dev*>( | 323 static_cast<const PPB_VarArrayBuffer*>( |
324 GetBrowserInterfaceSafe(PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE)); | 324 GetBrowserInterfaceSafe(PPB_VAR_ARRAY_BUFFER_INTERFACE)); |
325 return ppb; | 325 return ppb; |
326 } | 326 } |
327 | 327 |
328 const PPB_WheelInputEvent* PPBWheelInputEventInterface() { | 328 const PPB_WheelInputEvent* PPBWheelInputEventInterface() { |
329 static const PPB_WheelInputEvent* ppb = | 329 static const PPB_WheelInputEvent* ppb = |
330 static_cast<const PPB_WheelInputEvent*>( | 330 static_cast<const PPB_WheelInputEvent*>( |
331 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); | 331 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); |
332 return ppb; | 332 return ppb; |
333 } | 333 } |
334 | 334 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 } | 453 } |
454 | 454 |
455 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 455 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
456 static const PPB_UDPSocket_Private* ppb = | 456 static const PPB_UDPSocket_Private* ppb = |
457 static_cast<const PPB_UDPSocket_Private*>( | 457 static_cast<const PPB_UDPSocket_Private*>( |
458 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 458 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
459 return ppb; | 459 return ppb; |
460 } | 460 } |
461 | 461 |
462 } // namespace ppapi_proxy | 462 } // namespace ppapi_proxy |
OLD | NEW |