| 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 struct PPB_KeyboardInputEvent; | 28 struct PPB_KeyboardInputEvent; |
| 29 struct PPB_Memory_Dev; | 29 struct PPB_Memory_Dev; |
| 30 struct PPB_Messaging; | 30 struct PPB_Messaging; |
| 31 struct PPB_MouseInputEvent; | 31 struct PPB_MouseInputEvent; |
| 32 struct PPB_OpenGLES2; | 32 struct PPB_OpenGLES2; |
| 33 struct PPB_Testing_Dev; | 33 struct PPB_Testing_Dev; |
| 34 struct PPB_URLLoader; | 34 struct PPB_URLLoader; |
| 35 struct PPB_URLRequestInfo; | 35 struct PPB_URLRequestInfo; |
| 36 struct PPB_URLResponseInfo; | 36 struct PPB_URLResponseInfo; |
| 37 struct PPB_Var; | 37 struct PPB_Var; |
| 38 struct PPB_View; |
| 38 struct PPB_WheelInputEvent; | 39 struct PPB_WheelInputEvent; |
| 39 struct PPB_Widget_Dev; | 40 struct PPB_Widget_Dev; |
| 40 | 41 |
| 41 // Looks up the interface and returns its pointer or NULL. | 42 // Looks up the interface and returns its pointer or NULL. |
| 42 const void* GetBrowserInterface(const char* interface_name); | 43 const void* GetBrowserInterface(const char* interface_name); |
| 43 // Uses GetBrowserInterface() and CHECKs for NULL. | 44 // Uses GetBrowserInterface() and CHECKs for NULL. |
| 44 const void* GetBrowserInterfaceSafe(const char* interface_name); | 45 const void* GetBrowserInterfaceSafe(const char* interface_name); |
| 45 | 46 |
| 46 // | 47 // |
| 47 // Stable interfaces. | 48 // Stable interfaces. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 59 const PPB_InputEvent* PPBInputEvent(); | 60 const PPB_InputEvent* PPBInputEvent(); |
| 60 const PPB_Instance* PPBInstance(); | 61 const PPB_Instance* PPBInstance(); |
| 61 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); | 62 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); |
| 62 const PPB_Messaging* PPBMessaging(); | 63 const PPB_Messaging* PPBMessaging(); |
| 63 const PPB_MouseInputEvent* PPBMouseInputEvent(); | 64 const PPB_MouseInputEvent* PPBMouseInputEvent(); |
| 64 const PPB_OpenGLES2* PPBOpenGLES2(); | 65 const PPB_OpenGLES2* PPBOpenGLES2(); |
| 65 const PPB_URLLoader* PPBURLLoader(); | 66 const PPB_URLLoader* PPBURLLoader(); |
| 66 const PPB_URLRequestInfo* PPBURLRequestInfo(); | 67 const PPB_URLRequestInfo* PPBURLRequestInfo(); |
| 67 const PPB_URLResponseInfo* PPBURLResponseInfo(); | 68 const PPB_URLResponseInfo* PPBURLResponseInfo(); |
| 68 const PPB_Var* PPBVar(); | 69 const PPB_Var* PPBVar(); |
| 70 const PPB_View* PPBView(); |
| 69 const PPB_WheelInputEvent* PPBWheelInputEvent(); | 71 const PPB_WheelInputEvent* PPBWheelInputEvent(); |
| 70 | 72 |
| 71 // | 73 // |
| 72 // Experimental (aka Dev) interfaces. | 74 // Experimental (aka Dev) interfaces. |
| 73 // Lookup returns NULL if the interface is not available. | 75 // Lookup returns NULL if the interface is not available. |
| 74 // | 76 // |
| 75 | 77 |
| 76 const PPB_CursorControl_Dev* PPBCursorControlDev(); | 78 const PPB_CursorControl_Dev* PPBCursorControlDev(); |
| 77 const PPB_Font_Dev* PPBFontDev(); | 79 const PPB_Font_Dev* PPBFontDev(); |
| 78 const PPB_Memory_Dev* PPBMemoryDev(); | 80 const PPB_Memory_Dev* PPBMemoryDev(); |
| 79 const PPB_Scrollbar_Dev* PPBScrollbarDev(); | 81 const PPB_Scrollbar_Dev* PPBScrollbarDev(); |
| 80 const PPB_Testing_Dev* PPBTestingDev(); | 82 const PPB_Testing_Dev* PPBTestingDev(); |
| 81 const PPB_Widget_Dev* PPBWidgetDev(); | 83 const PPB_Widget_Dev* PPBWidgetDev(); |
| 82 | 84 |
| 83 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 85 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H |
| OLD | NEW |