| 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 <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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE)); | 206 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE)); |
| 207 return ppb; | 207 return ppb; |
| 208 } | 208 } |
| 209 | 209 |
| 210 const PPB_Graphics2D* PPBGraphics2DInterface() { | 210 const PPB_Graphics2D* PPBGraphics2DInterface() { |
| 211 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>( | 211 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>( |
| 212 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE)); | 212 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE)); |
| 213 return ppb; | 213 return ppb; |
| 214 } | 214 } |
| 215 | 215 |
| 216 const PPB_Graphics3D* PPBGraphics3DInterface() { | 216 const PPB_Graphics3D_Dev* PPBGraphics3DInterface() { |
| 217 static const PPB_Graphics3D* ppb = static_cast<const PPB_Graphics3D*>( | 217 static const PPB_Graphics3D_Dev* ppb = static_cast<const PPB_Graphics3D_Dev*>( |
| 218 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_INTERFACE)); | 218 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_DEV_INTERFACE)); |
| 219 return ppb; | 219 return ppb; |
| 220 } | 220 } |
| 221 | 221 |
| 222 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface() { | 222 const PPB_Graphics3DTrusted_Dev* PPBGraphics3DTrustedInterface() { |
| 223 static const PPB_Graphics3DTrusted* ppb = | 223 static const PPB_Graphics3DTrusted_Dev* ppb = |
| 224 static_cast<const PPB_Graphics3DTrusted*>( | 224 static_cast<const PPB_Graphics3DTrusted_Dev*>( |
| 225 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_INTERFACE)); | 225 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_DEV_INTERFACE)); |
| 226 return ppb; | 226 return ppb; |
| 227 } | 227 } |
| 228 | 228 |
| 229 const PPB_ImageData* PPBImageDataInterface() { | 229 const PPB_ImageData* PPBImageDataInterface() { |
| 230 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( | 230 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( |
| 231 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); | 231 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); |
| 232 return ppb; | 232 return ppb; |
| 233 } | 233 } |
| 234 | 234 |
| 235 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { | 235 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 393 |
| 394 // Private interfaces. | 394 // Private interfaces. |
| 395 const PPB_PDF* PPBPDFInterface() { | 395 const PPB_PDF* PPBPDFInterface() { |
| 396 static const PPB_PDF* ppb = | 396 static const PPB_PDF* ppb = |
| 397 static_cast<const PPB_PDF*>( | 397 static_cast<const PPB_PDF*>( |
| 398 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); | 398 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); |
| 399 return ppb; | 399 return ppb; |
| 400 } | 400 } |
| 401 | 401 |
| 402 } // namespace ppapi_proxy | 402 } // namespace ppapi_proxy |
| OLD | NEW |