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/platform/nacl_check.h" | 5 #include "native_client/src/shared/platform/nacl_check.h" |
6 | 6 |
7 #include "ppapi/c/dev/ppb_context_3d_dev.h" | |
8 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | 7 #include "ppapi/c/dev/ppb_cursor_control_dev.h" |
9 #include "ppapi/c/dev/ppb_font_dev.h" | 8 #include "ppapi/c/dev/ppb_font_dev.h" |
10 #include "ppapi/c/dev/ppb_memory_dev.h" | 9 #include "ppapi/c/dev/ppb_memory_dev.h" |
11 #include "ppapi/c/dev/ppb_scrollbar_dev.h" | 10 #include "ppapi/c/dev/ppb_scrollbar_dev.h" |
12 #include "ppapi/c/dev/ppb_surface_3d_dev.h" | |
13 #include "ppapi/c/dev/ppb_testing_dev.h" | 11 #include "ppapi/c/dev/ppb_testing_dev.h" |
14 #include "ppapi/c/dev/ppb_var_deprecated.h" | 12 #include "ppapi/c/dev/ppb_var_deprecated.h" |
15 #include "ppapi/c/dev/ppb_widget_dev.h" | 13 #include "ppapi/c/dev/ppb_widget_dev.h" |
16 #include "ppapi/c/ppb_core.h" | 14 #include "ppapi/c/ppb_core.h" |
17 #include "ppapi/c/ppb_file_io.h" | 15 #include "ppapi/c/ppb_file_io.h" |
18 #include "ppapi/c/ppb_file_ref.h" | 16 #include "ppapi/c/ppb_file_ref.h" |
19 #include "ppapi/c/ppb_file_system.h" | 17 #include "ppapi/c/ppb_file_system.h" |
20 #include "ppapi/c/ppb_fullscreen.h" | 18 #include "ppapi/c/ppb_fullscreen.h" |
21 #include "ppapi/c/ppb_graphics_2d.h" | 19 #include "ppapi/c/ppb_graphics_2d.h" |
22 #include "ppapi/c/ppb_graphics_3d.h" | 20 #include "ppapi/c/ppb_graphics_3d.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 136 } |
139 | 137 |
140 const PPB_WheelInputEvent* PPBWheelInputEvent() { | 138 const PPB_WheelInputEvent* PPBWheelInputEvent() { |
141 return reinterpret_cast<const PPB_WheelInputEvent*>( | 139 return reinterpret_cast<const PPB_WheelInputEvent*>( |
142 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); | 140 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); |
143 } | 141 } |
144 | 142 |
145 | 143 |
146 // Dev interfaces. | 144 // Dev interfaces. |
147 | 145 |
148 const PPB_Context3D_Dev* PPBContext3DDev() { | |
149 return reinterpret_cast<const PPB_Context3D_Dev*>( | |
150 // Change to GetBrowserInterfaceSafe when moving out of dev. | |
151 GetBrowserInterface(PPB_CONTEXT_3D_DEV_INTERFACE)); | |
152 } | |
153 | |
154 const PPB_CursorControl_Dev* PPBCursorControlDev() { | 146 const PPB_CursorControl_Dev* PPBCursorControlDev() { |
155 return reinterpret_cast<const PPB_CursorControl_Dev*>( | 147 return reinterpret_cast<const PPB_CursorControl_Dev*>( |
156 // Change to GetBrowserInterfaceSafe when moving out of dev. | 148 // Change to GetBrowserInterfaceSafe when moving out of dev. |
157 GetBrowserInterface(PPB_CURSOR_CONTROL_DEV_INTERFACE)); | 149 GetBrowserInterface(PPB_CURSOR_CONTROL_DEV_INTERFACE)); |
158 } | 150 } |
159 | 151 |
160 const PPB_Font_Dev* PPBFontDev() { | 152 const PPB_Font_Dev* PPBFontDev() { |
161 return reinterpret_cast<const PPB_Font_Dev*>( | 153 return reinterpret_cast<const PPB_Font_Dev*>( |
162 // Change to GetBrowserInterfaceSafe when moving out of dev. | 154 // Change to GetBrowserInterfaceSafe when moving out of dev. |
163 GetBrowserInterface(PPB_FONT_DEV_INTERFACE)); | 155 GetBrowserInterface(PPB_FONT_DEV_INTERFACE)); |
164 } | 156 } |
165 | 157 |
166 const PPB_Memory_Dev* PPBMemoryDev() { | 158 const PPB_Memory_Dev* PPBMemoryDev() { |
167 return reinterpret_cast<const PPB_Memory_Dev*>( | 159 return reinterpret_cast<const PPB_Memory_Dev*>( |
168 // Change to GetBrowserInterfaceSafe when moving out of dev. | 160 // Change to GetBrowserInterfaceSafe when moving out of dev. |
169 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); | 161 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); |
170 } | 162 } |
171 | 163 |
172 const PPB_Scrollbar_Dev* PPBScrollbarDev() { | 164 const PPB_Scrollbar_Dev* PPBScrollbarDev() { |
173 return reinterpret_cast<const PPB_Scrollbar_Dev*>( | 165 return reinterpret_cast<const PPB_Scrollbar_Dev*>( |
174 // Change to GetBrowserInterfaceSafe when moving out of dev. | 166 // Change to GetBrowserInterfaceSafe when moving out of dev. |
175 GetBrowserInterface(PPB_SCROLLBAR_DEV_INTERFACE)); | 167 GetBrowserInterface(PPB_SCROLLBAR_DEV_INTERFACE)); |
176 } | 168 } |
177 | 169 |
178 const PPB_Surface3D_Dev* PPBSurface3DDev() { | |
179 return reinterpret_cast<const PPB_Surface3D_Dev*>( | |
180 // Change to GetBrowserInterfaceSafe when moving out of dev. | |
181 GetBrowserInterface(PPB_SURFACE_3D_DEV_INTERFACE)); | |
182 } | |
183 | |
184 const PPB_Testing_Dev* PPBTestingDev() { | 170 const PPB_Testing_Dev* PPBTestingDev() { |
185 return reinterpret_cast<const PPB_Testing_Dev*>( | 171 return reinterpret_cast<const PPB_Testing_Dev*>( |
186 // Change to GetBrowserInterfaceSafe when moving out of dev. | 172 // Change to GetBrowserInterfaceSafe when moving out of dev. |
187 GetBrowserInterface(PPB_TESTING_DEV_INTERFACE)); | 173 GetBrowserInterface(PPB_TESTING_DEV_INTERFACE)); |
188 } | 174 } |
189 | 175 |
190 const PPB_Widget_Dev* PPBWidgetDev() { | 176 const PPB_Widget_Dev* PPBWidgetDev() { |
191 return reinterpret_cast<const PPB_Widget_Dev*>( | 177 return reinterpret_cast<const PPB_Widget_Dev*>( |
192 // Change to GetBrowserInterfaceSafe when moving out of dev. | 178 // Change to GetBrowserInterfaceSafe when moving out of dev. |
193 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE)); | 179 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE)); |
194 } | 180 } |
OLD | NEW |