| 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 // Defines helper functions for all interfaces supported by the Native Client | 5 // Defines helper functions for all interfaces supported by the Native Client |
| 6 // proxy. | 6 // proxy. |
| 7 | 7 |
| 8 #ifndef NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 8 #ifndef NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H |
| 9 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 9 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H |
| 10 | 10 |
| 11 // The definition of scrollbar depends on the interface version. | 11 // The definition of scrollbar depends on the interface version. |
| 12 // TODO(brettw) either move all interfaces to this method, or encode all | 12 // TODO(brettw) either move all interfaces to this method, or encode all |
| 13 // versions explicitly in all interfaces. | 13 // versions explicitly in all interfaces. |
| 14 #include "ppapi/c/dev/ppb_scrollbar_dev.h" | 14 #include "ppapi/c/dev/ppb_scrollbar_dev.h" |
| 15 | 15 |
| 16 struct PPB_Context3D_Dev; | 16 struct PPB_Context3D_Dev; |
| 17 struct PPB_Core; | 17 struct PPB_Core; |
| 18 struct PPB_CursorControl_Dev; | 18 struct PPB_CursorControl_Dev; |
| 19 struct PPB_FileIO; | 19 struct PPB_FileIO; |
| 20 struct PPB_FileRef; | 20 struct PPB_FileRef; |
| 21 struct PPB_FileSystem; | 21 struct PPB_FileSystem; |
| 22 struct PPB_Font_Dev; | 22 struct PPB_Font_Dev; |
| 23 struct PPB_Fullscreen_Dev; | 23 struct PPB_Fullscreen_Dev; |
| 24 struct PPB_Graphics2D; | 24 struct PPB_Graphics2D; |
| 25 struct PPB_Graphics3D; | 25 struct PPB_Graphics3D_Dev; |
| 26 struct PPB_ImageData; | 26 struct PPB_ImageData; |
| 27 struct PPB_InputEvent; | 27 struct PPB_InputEvent; |
| 28 struct PPB_Instance; | 28 struct PPB_Instance; |
| 29 struct PPB_KeyboardInputEvent; | 29 struct PPB_KeyboardInputEvent; |
| 30 struct PPB_Memory_Dev; | 30 struct PPB_Memory_Dev; |
| 31 struct PPB_Messaging; | 31 struct PPB_Messaging; |
| 32 struct PPB_MouseInputEvent; | 32 struct PPB_MouseInputEvent; |
| 33 struct PPB_OpenGLES2; | 33 struct PPB_OpenGLES2_Dev; |
| 34 struct PPB_Surface3D_Dev; | 34 struct PPB_Surface3D_Dev; |
| 35 struct PPB_Testing_Dev; | 35 struct PPB_Testing_Dev; |
| 36 struct PPB_URLLoader; | 36 struct PPB_URLLoader; |
| 37 struct PPB_URLRequestInfo; | 37 struct PPB_URLRequestInfo; |
| 38 struct PPB_URLResponseInfo; | 38 struct PPB_URLResponseInfo; |
| 39 struct PPB_Var; | 39 struct PPB_Var; |
| 40 struct PPB_WheelInputEvent; | 40 struct PPB_WheelInputEvent; |
| 41 struct PPB_Widget_Dev; | 41 struct PPB_Widget_Dev; |
| 42 | 42 |
| 43 // Looks up the interface and returns its pointer or NULL. | 43 // Looks up the interface and returns its pointer or NULL. |
| 44 const void* GetBrowserInterface(const char* interface_name); | 44 const void* GetBrowserInterface(const char* interface_name); |
| 45 // Uses GetBrowserInterface() and CHECKs for NULL. | 45 // Uses GetBrowserInterface() and CHECKs for NULL. |
| 46 const void* GetBrowserInterfaceSafe(const char* interface_name); | 46 const void* GetBrowserInterfaceSafe(const char* interface_name); |
| 47 | 47 |
| 48 // | 48 // |
| 49 // Stable interfaces. | 49 // Stable interfaces. |
| 50 // Lookup guarantees that the interface is available by using NULL CHECKs. | 50 // Lookup guarantees that the interface is available by using NULL CHECKs. |
| 51 // | 51 // |
| 52 | 52 |
| 53 const PPB_Core* PPBCore(); | 53 const PPB_Core* PPBCore(); |
| 54 const PPB_FileIO* PPBFileIO(); | 54 const PPB_FileIO* PPBFileIO(); |
| 55 const PPB_FileRef* PPBFileRef(); | 55 const PPB_FileRef* PPBFileRef(); |
| 56 const PPB_FileSystem* PPBFileSystem(); | 56 const PPB_FileSystem* PPBFileSystem(); |
| 57 const PPB_Graphics2D* PPBGraphics2D(); | 57 const PPB_Graphics2D* PPBGraphics2D(); |
| 58 const PPB_Graphics3D* PPBGraphics3D(); | |
| 59 const PPB_ImageData* PPBImageData(); | 58 const PPB_ImageData* PPBImageData(); |
| 60 const PPB_InputEvent* PPBInputEvent(); | 59 const PPB_InputEvent* PPBInputEvent(); |
| 61 const PPB_Instance* PPBInstance(); | 60 const PPB_Instance* PPBInstance(); |
| 62 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); | 61 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); |
| 63 const PPB_Messaging* PPBMessaging(); | 62 const PPB_Messaging* PPBMessaging(); |
| 64 const PPB_MouseInputEvent* PPBMouseInputEvent(); | 63 const PPB_MouseInputEvent* PPBMouseInputEvent(); |
| 65 const PPB_OpenGLES2* PPBOpenGLES2(); | |
| 66 const PPB_URLLoader* PPBURLLoader(); | 64 const PPB_URLLoader* PPBURLLoader(); |
| 67 const PPB_URLRequestInfo* PPBURLRequestInfo(); | 65 const PPB_URLRequestInfo* PPBURLRequestInfo(); |
| 68 const PPB_URLResponseInfo* PPBURLResponseInfo(); | 66 const PPB_URLResponseInfo* PPBURLResponseInfo(); |
| 69 const PPB_Var* PPBVar(); | 67 const PPB_Var* PPBVar(); |
| 70 const PPB_WheelInputEvent* PPBWheelInputEvent(); | 68 const PPB_WheelInputEvent* PPBWheelInputEvent(); |
| 71 | 69 |
| 72 // | 70 // |
| 73 // Experimental (aka Dev) interfaces. | 71 // Experimental (aka Dev) interfaces. |
| 74 // Lookup returns NULL if the interface is not available. | 72 // Lookup returns NULL if the interface is not available. |
| 75 // | 73 // |
| 76 | 74 |
| 77 const PPB_Context3D_Dev* PPBContext3DDev(); | 75 const PPB_Context3D_Dev* PPBContext3DDev(); |
| 78 const PPB_CursorControl_Dev* PPBCursorControlDev(); | 76 const PPB_CursorControl_Dev* PPBCursorControlDev(); |
| 79 const PPB_Font_Dev* PPBFontDev(); | 77 const PPB_Font_Dev* PPBFontDev(); |
| 80 const PPB_Fullscreen_Dev* PPBFullscreenDev(); | 78 const PPB_Fullscreen_Dev* PPBFullscreenDev(); |
| 79 const PPB_Graphics3D_Dev* PPBGraphics3DDev(); |
| 81 const PPB_Memory_Dev* PPBMemoryDev(); | 80 const PPB_Memory_Dev* PPBMemoryDev(); |
| 81 const PPB_OpenGLES2_Dev* PPBOpenGLES2Dev(); |
| 82 const PPB_Scrollbar_Dev* PPBScrollbarDev(); | 82 const PPB_Scrollbar_Dev* PPBScrollbarDev(); |
| 83 const PPB_Surface3D_Dev* PPBSurface3DDev(); | 83 const PPB_Surface3D_Dev* PPBSurface3DDev(); |
| 84 const PPB_Testing_Dev* PPBTestingDev(); | 84 const PPB_Testing_Dev* PPBTestingDev(); |
| 85 const PPB_Widget_Dev* PPBWidgetDev(); | 85 const PPB_Widget_Dev* PPBWidgetDev(); |
| 86 | 86 |
| 87 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 87 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H |
| OLD | NEW |