| 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 "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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 return ppb; | 304 return ppb; |
| 305 } | 305 } |
| 306 | 306 |
| 307 const PPB_Var* PPBVarInterface() { | 307 const PPB_Var* PPBVarInterface() { |
| 308 static const PPB_Var* ppb = | 308 static const PPB_Var* ppb = |
| 309 static_cast<const PPB_Var*>( | 309 static_cast<const PPB_Var*>( |
| 310 GetBrowserInterfaceSafe(PPB_VAR_INTERFACE)); | 310 GetBrowserInterfaceSafe(PPB_VAR_INTERFACE)); |
| 311 return ppb; | 311 return ppb; |
| 312 } | 312 } |
| 313 | 313 |
| 314 const PPB_VarArrayBuffer_Dev* PPBVarArrayBufferInterface() { |
| 315 static const PPB_VarArrayBuffer_Dev* ppb = |
| 316 static_cast<const PPB_VarArrayBuffer_Dev*>( |
| 317 GetBrowserInterfaceSafe(PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE)); |
| 318 return ppb; |
| 319 } |
| 320 |
| 314 const PPB_WheelInputEvent* PPBWheelInputEventInterface() { | 321 const PPB_WheelInputEvent* PPBWheelInputEventInterface() { |
| 315 static const PPB_WheelInputEvent* ppb = | 322 static const PPB_WheelInputEvent* ppb = |
| 316 static_cast<const PPB_WheelInputEvent*>( | 323 static_cast<const PPB_WheelInputEvent*>( |
| 317 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); | 324 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); |
| 318 return ppb; | 325 return ppb; |
| 319 } | 326 } |
| 320 | 327 |
| 321 // Dev interfaces. | 328 // Dev interfaces. |
| 322 const PPB_CursorControl_Dev* PPBCursorControlInterface() { | 329 const PPB_CursorControl_Dev* PPBCursorControlInterface() { |
| 323 static const PPB_CursorControl_Dev* ppb = | 330 static const PPB_CursorControl_Dev* ppb = |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 } | 425 } |
| 419 | 426 |
| 420 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 427 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
| 421 static const PPB_UDPSocket_Private* ppb = | 428 static const PPB_UDPSocket_Private* ppb = |
| 422 static_cast<const PPB_UDPSocket_Private*>( | 429 static_cast<const PPB_UDPSocket_Private*>( |
| 423 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 430 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
| 424 return ppb; | 431 return ppb; |
| 425 } | 432 } |
| 426 | 433 |
| 427 } // namespace ppapi_proxy | 434 } // namespace ppapi_proxy |
| OLD | NEW |