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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 return ppb; | 387 return ppb; |
388 } | 388 } |
389 | 389 |
390 const PPB_Fullscreen* PPBFullscreenInterface() { | 390 const PPB_Fullscreen* PPBFullscreenInterface() { |
391 static const PPB_Fullscreen* ppb = | 391 static const PPB_Fullscreen* ppb = |
392 static_cast<const PPB_Fullscreen*>( | 392 static_cast<const PPB_Fullscreen*>( |
393 GetBrowserInterfaceSafe(PPB_FULLSCREEN_INTERFACE)); | 393 GetBrowserInterfaceSafe(PPB_FULLSCREEN_INTERFACE)); |
394 return ppb; | 394 return ppb; |
395 } | 395 } |
396 | 396 |
397 const PPB_MouseLock_Dev* PPBMouseLockInterface() { | 397 const PPB_MouseLock* PPBMouseLockInterface() { |
398 static const PPB_MouseLock_Dev* ppb = | 398 static const PPB_MouseLock* ppb = static_cast<const PPB_MouseLock*>( |
399 static_cast<const PPB_MouseLock_Dev*>( | 399 GetBrowserInterfaceSafe(PPB_MOUSELOCK_INTERFACE)); |
400 GetBrowserInterfaceSafe(PPB_MOUSELOCK_DEV_INTERFACE)); | |
401 return ppb; | 400 return ppb; |
402 } | 401 } |
403 | 402 |
404 const PPB_Scrollbar_Dev* PPBScrollbarInterface() { | 403 const PPB_Scrollbar_Dev* PPBScrollbarInterface() { |
405 static const PPB_Scrollbar_Dev* ppb = | 404 static const PPB_Scrollbar_Dev* ppb = |
406 static_cast<const PPB_Scrollbar_Dev*>( | 405 static_cast<const PPB_Scrollbar_Dev*>( |
407 GetBrowserInterfaceSafe(PPB_SCROLLBAR_DEV_INTERFACE)); | 406 GetBrowserInterfaceSafe(PPB_SCROLLBAR_DEV_INTERFACE)); |
408 return ppb; | 407 return ppb; |
409 } | 408 } |
410 | 409 |
(...skipping 20 matching lines...) Expand all Loading... |
431 | 430 |
432 // Private interfaces. | 431 // Private interfaces. |
433 const PPB_PDF* PPBPDFInterface() { | 432 const PPB_PDF* PPBPDFInterface() { |
434 static const PPB_PDF* ppb = | 433 static const PPB_PDF* ppb = |
435 static_cast<const PPB_PDF*>( | 434 static_cast<const PPB_PDF*>( |
436 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); | 435 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); |
437 return ppb; | 436 return ppb; |
438 } | 437 } |
439 | 438 |
440 } // namespace ppapi_proxy | 439 } // namespace ppapi_proxy |
OLD | NEW |