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; |
24 struct PPB_Graphics2D; | 24 struct PPB_Graphics2D; |
25 struct PPB_Graphics3D; | 25 struct PPB_Graphics3D; |
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; |
(...skipping 13 matching lines...) Expand all Loading... |
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_Fullscreen* PPBFullscreen(); |
57 const PPB_Graphics2D* PPBGraphics2D(); | 58 const PPB_Graphics2D* PPBGraphics2D(); |
58 const PPB_Graphics3D* PPBGraphics3D(); | 59 const PPB_Graphics3D* PPBGraphics3D(); |
59 const PPB_ImageData* PPBImageData(); | 60 const PPB_ImageData* PPBImageData(); |
60 const PPB_InputEvent* PPBInputEvent(); | 61 const PPB_InputEvent* PPBInputEvent(); |
61 const PPB_Instance* PPBInstance(); | 62 const PPB_Instance* PPBInstance(); |
62 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); | 63 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); |
63 const PPB_Messaging* PPBMessaging(); | 64 const PPB_Messaging* PPBMessaging(); |
64 const PPB_MouseInputEvent* PPBMouseInputEvent(); | 65 const PPB_MouseInputEvent* PPBMouseInputEvent(); |
65 const PPB_OpenGLES2* PPBOpenGLES2(); | 66 const PPB_OpenGLES2* PPBOpenGLES2(); |
66 const PPB_URLLoader* PPBURLLoader(); | 67 const PPB_URLLoader* PPBURLLoader(); |
67 const PPB_URLRequestInfo* PPBURLRequestInfo(); | 68 const PPB_URLRequestInfo* PPBURLRequestInfo(); |
68 const PPB_URLResponseInfo* PPBURLResponseInfo(); | 69 const PPB_URLResponseInfo* PPBURLResponseInfo(); |
69 const PPB_Var* PPBVar(); | 70 const PPB_Var* PPBVar(); |
70 const PPB_WheelInputEvent* PPBWheelInputEvent(); | 71 const PPB_WheelInputEvent* PPBWheelInputEvent(); |
71 | 72 |
72 // | 73 // |
73 // Experimental (aka Dev) interfaces. | 74 // Experimental (aka Dev) interfaces. |
74 // Lookup returns NULL if the interface is not available. | 75 // Lookup returns NULL if the interface is not available. |
75 // | 76 // |
76 | 77 |
77 const PPB_Context3D_Dev* PPBContext3DDev(); | 78 const PPB_Context3D_Dev* PPBContext3DDev(); |
78 const PPB_CursorControl_Dev* PPBCursorControlDev(); | 79 const PPB_CursorControl_Dev* PPBCursorControlDev(); |
79 const PPB_Font_Dev* PPBFontDev(); | 80 const PPB_Font_Dev* PPBFontDev(); |
80 const PPB_Fullscreen_Dev* PPBFullscreenDev(); | |
81 const PPB_Memory_Dev* PPBMemoryDev(); | 81 const PPB_Memory_Dev* PPBMemoryDev(); |
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 |