| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_font_dev.h" | |
| 8 #include "ppapi/c/dev/ppb_memory_dev.h" | 7 #include "ppapi/c/dev/ppb_memory_dev.h" |
| 9 #include "ppapi/c/dev/ppb_var_deprecated.h" | 8 #include "ppapi/c/dev/ppb_var_deprecated.h" |
| 10 #include "ppapi/c/ppb_audio.h" | 9 #include "ppapi/c/ppb_audio.h" |
| 11 #include "ppapi/c/ppb_audio_config.h" | 10 #include "ppapi/c/ppb_audio_config.h" |
| 12 #include "ppapi/c/ppb_core.h" | 11 #include "ppapi/c/ppb_core.h" |
| 13 #include "ppapi/c/ppb_file_io.h" | 12 #include "ppapi/c/ppb_file_io.h" |
| 14 #include "ppapi/c/ppb_file_ref.h" | 13 #include "ppapi/c/ppb_file_ref.h" |
| 15 #include "ppapi/c/ppb_file_system.h" | 14 #include "ppapi/c/ppb_file_system.h" |
| 16 #include "ppapi/c/ppb_fullscreen.h" | 15 #include "ppapi/c/ppb_fullscreen.h" |
| 17 #include "ppapi/c/ppb_graphics_2d.h" | 16 #include "ppapi/c/ppb_graphics_2d.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 } | 151 } |
| 153 | 152 |
| 154 const PPB_WheelInputEvent* PPBWheelInputEvent() { | 153 const PPB_WheelInputEvent* PPBWheelInputEvent() { |
| 155 return reinterpret_cast<const PPB_WheelInputEvent*>( | 154 return reinterpret_cast<const PPB_WheelInputEvent*>( |
| 156 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); | 155 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); |
| 157 } | 156 } |
| 158 | 157 |
| 159 | 158 |
| 160 // Dev interfaces. | 159 // Dev interfaces. |
| 161 | 160 |
| 162 const PPB_Font_Dev* PPBFontDev() { | |
| 163 return reinterpret_cast<const PPB_Font_Dev*>( | |
| 164 // Change to GetBrowserInterfaceSafe when moving out of dev. | |
| 165 GetBrowserInterface(PPB_FONT_DEV_INTERFACE)); | |
| 166 } | |
| 167 | |
| 168 const PPB_Memory_Dev* PPBMemoryDev() { | 161 const PPB_Memory_Dev* PPBMemoryDev() { |
| 169 return reinterpret_cast<const PPB_Memory_Dev*>( | 162 return reinterpret_cast<const PPB_Memory_Dev*>( |
| 170 // Change to GetBrowserInterfaceSafe when moving out of dev. | 163 // Change to GetBrowserInterfaceSafe when moving out of dev. |
| 171 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); | 164 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); |
| 172 } | 165 } |
| 173 | 166 |
| 174 const PPB_Testing_Private* PPBTestingPrivate() { | 167 const PPB_Testing_Private* PPBTestingPrivate() { |
| 175 return reinterpret_cast<const PPB_Testing_Private*>( | 168 return reinterpret_cast<const PPB_Testing_Private*>( |
| 176 GetBrowserInterface(PPB_TESTING_PRIVATE_INTERFACE)); | 169 GetBrowserInterface(PPB_TESTING_PRIVATE_INTERFACE)); |
| 177 } | 170 } |
| 178 | 171 |
| 179 const PPB_View* PPBView() { | 172 const PPB_View* PPBView() { |
| 180 return reinterpret_cast<const PPB_View*>( | 173 return reinterpret_cast<const PPB_View*>( |
| 181 GetBrowserInterface(PPB_VIEW_INTERFACE)); | 174 GetBrowserInterface(PPB_VIEW_INTERFACE)); |
| 182 } | 175 } |
| OLD | NEW |