| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 return ppb; | 381 return ppb; |
| 382 } | 382 } |
| 383 | 383 |
| 384 const PPB_Fullscreen* PPBFullscreenInterface() { | 384 const PPB_Fullscreen* PPBFullscreenInterface() { |
| 385 static const PPB_Fullscreen* ppb = | 385 static const PPB_Fullscreen* ppb = |
| 386 static_cast<const PPB_Fullscreen*>( | 386 static_cast<const PPB_Fullscreen*>( |
| 387 GetBrowserInterfaceSafe(PPB_FULLSCREEN_INTERFACE)); | 387 GetBrowserInterfaceSafe(PPB_FULLSCREEN_INTERFACE)); |
| 388 return ppb; | 388 return ppb; |
| 389 } | 389 } |
| 390 | 390 |
| 391 const PPB_Gamepad_Dev* PPBGamepadInterface() { | 391 const PPB_Gamepad* PPBGamepadInterface() { |
| 392 static const PPB_Gamepad_Dev* ppb = | 392 static const PPB_Gamepad* ppb = |
| 393 static_cast<const PPB_Gamepad_Dev*>( | 393 static_cast<const PPB_Gamepad*>( |
| 394 GetBrowserInterfaceSafe(PPB_GAMEPAD_DEV_INTERFACE)); | 394 GetBrowserInterfaceSafe(PPB_GAMEPAD_INTERFACE)); |
| 395 return ppb; | 395 return ppb; |
| 396 } | 396 } |
| 397 | 397 |
| 398 const PPB_MouseLock* PPBMouseLockInterface() { | 398 const PPB_MouseLock* PPBMouseLockInterface() { |
| 399 static const PPB_MouseLock* ppb = static_cast<const PPB_MouseLock*>( | 399 static const PPB_MouseLock* ppb = static_cast<const PPB_MouseLock*>( |
| 400 GetBrowserInterfaceSafe(PPB_MOUSELOCK_INTERFACE)); | 400 GetBrowserInterfaceSafe(PPB_MOUSELOCK_INTERFACE)); |
| 401 return ppb; | 401 return ppb; |
| 402 } | 402 } |
| 403 | 403 |
| 404 const PPB_Scrollbar_Dev* PPBScrollbarInterface() { | 404 const PPB_Scrollbar_Dev* PPBScrollbarInterface() { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 } | 466 } |
| 467 | 467 |
| 468 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 468 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
| 469 static const PPB_UDPSocket_Private* ppb = | 469 static const PPB_UDPSocket_Private* ppb = |
| 470 static_cast<const PPB_UDPSocket_Private*>( | 470 static_cast<const PPB_UDPSocket_Private*>( |
| 471 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 471 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
| 472 return ppb; | 472 return ppb; |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace ppapi_proxy | 475 } // namespace ppapi_proxy |
| OLD | NEW |