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 #include "ppapi/c/ppb_core.h" |
12 // TODO(brettw) either move all interfaces to this method, or encode all | 12 #include "ppapi/c/ppb_file_io.h" |
13 // versions explicitly in all interfaces. | 13 #include "ppapi/c/ppb_file_ref.h" |
| 14 #include "ppapi/c/ppb_file_system.h" |
| 15 #include "ppapi/c/ppb_fullscreen.h" |
| 16 #include "ppapi/c/ppb_graphics_2d.h" |
| 17 #include "ppapi/c/ppb_graphics_3d.h" |
| 18 #include "ppapi/c/ppb_image_data.h" |
| 19 #include "ppapi/c/ppb_input_event.h" |
| 20 #include "ppapi/c/ppb_instance.h" |
| 21 #include "ppapi/c/ppb_messaging.h" |
| 22 #include "ppapi/c/ppb_opengles2.h" |
| 23 #include "ppapi/c/ppb_url_loader.h" |
| 24 #include "ppapi/c/ppb_url_request_info.h" |
| 25 #include "ppapi/c/ppb_url_response_info.h" |
| 26 #include "ppapi/c/ppb_var.h" |
| 27 #include "ppapi/c/ppb_view.h" |
| 28 #include "ppapi/c/dev/ppb_cursor_control_dev.h" |
| 29 #include "ppapi/c/dev/ppb_font_dev.h" |
| 30 #include "ppapi/c/dev/ppb_memory_dev.h" |
14 #include "ppapi/c/dev/ppb_scrollbar_dev.h" | 31 #include "ppapi/c/dev/ppb_scrollbar_dev.h" |
15 | 32 #include "ppapi/c/dev/ppb_testing_dev.h" |
16 struct PPB_Core; | 33 #include "ppapi/c/dev/ppb_widget_dev.h" |
17 struct PPB_CursorControl_Dev; | |
18 struct PPB_FileIO; | |
19 struct PPB_FileRef; | |
20 struct PPB_FileSystem; | |
21 struct PPB_Font_Dev; | |
22 struct PPB_Fullscreen; | |
23 struct PPB_Graphics2D; | |
24 struct PPB_Graphics3D; | |
25 struct PPB_ImageData; | |
26 struct PPB_InputEvent; | |
27 struct PPB_Instance; | |
28 struct PPB_KeyboardInputEvent; | |
29 struct PPB_Memory_Dev; | |
30 struct PPB_Messaging; | |
31 struct PPB_MouseInputEvent; | |
32 struct PPB_OpenGLES2; | |
33 struct PPB_Testing_Dev; | |
34 struct PPB_URLLoader; | |
35 struct PPB_URLRequestInfo; | |
36 struct PPB_URLResponseInfo; | |
37 struct PPB_Var; | |
38 struct PPB_View; | |
39 struct PPB_WheelInputEvent; | |
40 struct PPB_Widget_Dev; | |
41 | 34 |
42 // Looks up the interface and returns its pointer or NULL. | 35 // Looks up the interface and returns its pointer or NULL. |
43 const void* GetBrowserInterface(const char* interface_name); | 36 const void* GetBrowserInterface(const char* interface_name); |
44 // Uses GetBrowserInterface() and CHECKs for NULL. | 37 // Uses GetBrowserInterface() and CHECKs for NULL. |
45 const void* GetBrowserInterfaceSafe(const char* interface_name); | 38 const void* GetBrowserInterfaceSafe(const char* interface_name); |
46 | 39 |
47 // | 40 // |
48 // Stable interfaces. | 41 // Stable interfaces. |
49 // Lookup guarantees that the interface is available by using NULL CHECKs. | 42 // Lookup guarantees that the interface is available by using NULL CHECKs. |
50 // | 43 // |
(...skipping 25 matching lines...) Loading... |
76 // | 69 // |
77 | 70 |
78 const PPB_CursorControl_Dev* PPBCursorControlDev(); | 71 const PPB_CursorControl_Dev* PPBCursorControlDev(); |
79 const PPB_Font_Dev* PPBFontDev(); | 72 const PPB_Font_Dev* PPBFontDev(); |
80 const PPB_Memory_Dev* PPBMemoryDev(); | 73 const PPB_Memory_Dev* PPBMemoryDev(); |
81 const PPB_Scrollbar_Dev* PPBScrollbarDev(); | 74 const PPB_Scrollbar_Dev* PPBScrollbarDev(); |
82 const PPB_Testing_Dev* PPBTestingDev(); | 75 const PPB_Testing_Dev* PPBTestingDev(); |
83 const PPB_Widget_Dev* PPBWidgetDev(); | 76 const PPB_Widget_Dev* PPBWidgetDev(); |
84 | 77 |
85 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 78 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H |
OLD | NEW |