| 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/platform/nacl_check.h" | 5 #include "native_client/src/shared/platform/nacl_check.h" |
| 6 | 6 |
| 7 #include "native_client/src/third_party/ppapi/c/dev/ppb_context_3d_dev.h" | 7 #include "native_client/src/third_party/ppapi/c/dev/ppb_context_3d_dev.h" |
| 8 #include "native_client/src/third_party/ppapi/c/dev/ppb_cursor_control_dev.h" | 8 #include "native_client/src/third_party/ppapi/c/dev/ppb_cursor_control_dev.h" |
| 9 #include "native_client/src/third_party/ppapi/c/dev/ppb_font_dev.h" | 9 #include "native_client/src/third_party/ppapi/c/dev/ppb_font_dev.h" |
| 10 #include "native_client/src/third_party/ppapi/c/dev/ppb_graphics_3d_dev.h" |
| 10 #include "native_client/src/third_party/ppapi/c/dev/ppb_memory_dev.h" | 11 #include "native_client/src/third_party/ppapi/c/dev/ppb_memory_dev.h" |
| 12 #include "native_client/src/third_party/ppapi/c/dev/ppb_opengles_dev.h" |
| 11 #include "native_client/src/third_party/ppapi/c/dev/ppb_scrollbar_dev.h" | 13 #include "native_client/src/third_party/ppapi/c/dev/ppb_scrollbar_dev.h" |
| 12 #include "native_client/src/third_party/ppapi/c/dev/ppb_surface_3d_dev.h" | 14 #include "native_client/src/third_party/ppapi/c/dev/ppb_surface_3d_dev.h" |
| 13 #include "native_client/src/third_party/ppapi/c/dev/ppb_testing_dev.h" | 15 #include "native_client/src/third_party/ppapi/c/dev/ppb_testing_dev.h" |
| 14 #include "native_client/src/third_party/ppapi/c/dev/ppb_var_deprecated.h" | 16 #include "native_client/src/third_party/ppapi/c/dev/ppb_var_deprecated.h" |
| 15 #include "native_client/src/third_party/ppapi/c/dev/ppb_widget_dev.h" | 17 #include "native_client/src/third_party/ppapi/c/dev/ppb_widget_dev.h" |
| 16 #include "native_client/src/third_party/ppapi/c/ppb_core.h" | 18 #include "native_client/src/third_party/ppapi/c/ppb_core.h" |
| 17 #include "native_client/src/third_party/ppapi/c/ppb_file_io.h" | 19 #include "native_client/src/third_party/ppapi/c/ppb_file_io.h" |
| 18 #include "native_client/src/third_party/ppapi/c/ppb_file_ref.h" | 20 #include "native_client/src/third_party/ppapi/c/ppb_file_ref.h" |
| 19 #include "native_client/src/third_party/ppapi/c/ppb_file_system.h" | 21 #include "native_client/src/third_party/ppapi/c/ppb_file_system.h" |
| 20 #include "native_client/src/third_party/ppapi/c/ppb_graphics_2d.h" | 22 #include "native_client/src/third_party/ppapi/c/ppb_graphics_2d.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const PPB_Context3D_Dev* PPBContext3DDev() { | 130 const PPB_Context3D_Dev* PPBContext3DDev() { |
| 129 return reinterpret_cast<const PPB_Context3D_Dev*>( | 131 return reinterpret_cast<const PPB_Context3D_Dev*>( |
| 130 GetBrowserInterface(PPB_CONTEXT_3D_DEV_INTERFACE)); | 132 GetBrowserInterface(PPB_CONTEXT_3D_DEV_INTERFACE)); |
| 131 } | 133 } |
| 132 | 134 |
| 133 const PPB_CursorControl_Dev* PPBCursorControlDev() { | 135 const PPB_CursorControl_Dev* PPBCursorControlDev() { |
| 134 return reinterpret_cast<const PPB_CursorControl_Dev*>( | 136 return reinterpret_cast<const PPB_CursorControl_Dev*>( |
| 135 GetBrowserInterface(PPB_CURSOR_CONTROL_DEV_INTERFACE)); | 137 GetBrowserInterface(PPB_CURSOR_CONTROL_DEV_INTERFACE)); |
| 136 } | 138 } |
| 137 | 139 |
| 140 const PPB_Graphics3D_Dev* PPBGraphics3DDev() { |
| 141 return reinterpret_cast<const PPB_Graphics3D_Dev*>( |
| 142 GetBrowserInterface(PPB_GRAPHICS_3D_DEV_INTERFACE)); |
| 143 } |
| 144 |
| 138 const PPB_Font_Dev* PPBFontDev() { | 145 const PPB_Font_Dev* PPBFontDev() { |
| 139 return reinterpret_cast<const PPB_Font_Dev*>( | 146 return reinterpret_cast<const PPB_Font_Dev*>( |
| 140 GetBrowserInterface(PPB_FONT_DEV_INTERFACE)); | 147 GetBrowserInterface(PPB_FONT_DEV_INTERFACE)); |
| 141 } | 148 } |
| 142 | 149 |
| 143 const PPB_Memory_Dev* PPBMemoryDev() { | 150 const PPB_Memory_Dev* PPBMemoryDev() { |
| 144 return reinterpret_cast<const PPB_Memory_Dev*>( | 151 return reinterpret_cast<const PPB_Memory_Dev*>( |
| 145 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); | 152 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); |
| 146 } | 153 } |
| 147 | 154 |
| 155 const PPB_OpenGLES2_Dev* PPBOpenGLES2Dev() { |
| 156 return reinterpret_cast<const PPB_OpenGLES2_Dev*>( |
| 157 GetBrowserInterface(PPB_OPENGLES2_DEV_INTERFACE)); |
| 158 } |
| 159 |
| 148 const PPB_Scrollbar_Dev* PPBScrollbarDev() { | 160 const PPB_Scrollbar_Dev* PPBScrollbarDev() { |
| 149 return reinterpret_cast<const PPB_Scrollbar_Dev*>( | 161 return reinterpret_cast<const PPB_Scrollbar_Dev*>( |
| 150 GetBrowserInterface(PPB_SCROLLBAR_DEV_INTERFACE)); | 162 GetBrowserInterface(PPB_SCROLLBAR_DEV_INTERFACE)); |
| 151 } | 163 } |
| 152 | 164 |
| 153 const PPB_Surface3D_Dev* PPBSurface3DDev() { | 165 const PPB_Surface3D_Dev* PPBSurface3DDev() { |
| 154 return reinterpret_cast<const PPB_Surface3D_Dev*>( | 166 return reinterpret_cast<const PPB_Surface3D_Dev*>( |
| 155 GetBrowserInterface(PPB_SURFACE_3D_DEV_INTERFACE)); | 167 GetBrowserInterface(PPB_SURFACE_3D_DEV_INTERFACE)); |
| 156 } | 168 } |
| 157 | 169 |
| 158 const PPB_Testing_Dev* PPBTestingDev() { | 170 const PPB_Testing_Dev* PPBTestingDev() { |
| 159 return reinterpret_cast<const PPB_Testing_Dev*>( | 171 return reinterpret_cast<const PPB_Testing_Dev*>( |
| 160 GetBrowserInterface(PPB_TESTING_DEV_INTERFACE)); | 172 GetBrowserInterface(PPB_TESTING_DEV_INTERFACE)); |
| 161 } | 173 } |
| 162 | 174 |
| 163 const PPB_Widget_Dev* PPBWidgetDev() { | 175 const PPB_Widget_Dev* PPBWidgetDev() { |
| 164 return reinterpret_cast<const PPB_Widget_Dev*>( | 176 return reinterpret_cast<const PPB_Widget_Dev*>( |
| 165 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE)); | 177 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE)); |
| 166 } | 178 } |
| 167 | 179 |
| OLD | NEW |