| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Native Client 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 <stdio.h> | 7 #include <stdio.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE)); | 221 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE)); |
| 222 return ppb; | 222 return ppb; |
| 223 } | 223 } |
| 224 | 224 |
| 225 const PPB_Graphics2D* PPBGraphics2DInterface() { | 225 const PPB_Graphics2D* PPBGraphics2DInterface() { |
| 226 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>( | 226 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>( |
| 227 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE)); | 227 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE)); |
| 228 return ppb; | 228 return ppb; |
| 229 } | 229 } |
| 230 | 230 |
| 231 const PPB_Graphics3D_Dev* PPBGraphics3DInterface() { |
| 232 static const PPB_Graphics3D_Dev* ppb = static_cast<const PPB_Graphics3D_Dev*>( |
| 233 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_DEV_INTERFACE)); |
| 234 return ppb; |
| 235 } |
| 236 |
| 237 const PPB_Graphics3DTrusted_Dev* PPBGraphics3DTrustedInterface() { |
| 238 static const PPB_Graphics3DTrusted_Dev* ppb = |
| 239 static_cast<const PPB_Graphics3DTrusted_Dev*>( |
| 240 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_DEV_INTERFACE)); |
| 241 return ppb; |
| 242 } |
| 243 |
| 231 const PPB_ImageData* PPBImageDataInterface() { | 244 const PPB_ImageData* PPBImageDataInterface() { |
| 232 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( | 245 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( |
| 233 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); | 246 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); |
| 234 return ppb; | 247 return ppb; |
| 235 } | 248 } |
| 236 | 249 |
| 237 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { | 250 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { |
| 238 static const PPB_ImageDataTrusted* ppb = | 251 static const PPB_ImageDataTrusted* ppb = |
| 239 static_cast<const PPB_ImageDataTrusted*>( | 252 static_cast<const PPB_ImageDataTrusted*>( |
| 240 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE)); | 253 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE)); |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 408 |
| 396 // Private interfaces. | 409 // Private interfaces. |
| 397 const PPB_PDF* PPBPDFInterface() { | 410 const PPB_PDF* PPBPDFInterface() { |
| 398 static const PPB_PDF* ppb = | 411 static const PPB_PDF* ppb = |
| 399 static_cast<const PPB_PDF*>( | 412 static_cast<const PPB_PDF*>( |
| 400 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); | 413 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); |
| 401 return ppb; | 414 return ppb; |
| 402 } | 415 } |
| 403 | 416 |
| 404 } // namespace ppapi_proxy | 417 } // namespace ppapi_proxy |
| OLD | NEW |