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/dev/ppb_cursor_control_dev.h" |
| 28 #include "ppapi/c/dev/ppb_font_dev.h" |
| 29 #include "ppapi/c/dev/ppb_memory_dev.h" |
14 #include "ppapi/c/dev/ppb_scrollbar_dev.h" | 30 #include "ppapi/c/dev/ppb_scrollbar_dev.h" |
15 | 31 #include "ppapi/c/dev/ppb_testing_dev.h" |
16 struct PPB_Core; | 32 #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_WheelInputEvent; | |
39 struct PPB_Widget_Dev; | |
40 | 33 |
41 // Looks up the interface and returns its pointer or NULL. | 34 // Looks up the interface and returns its pointer or NULL. |
42 const void* GetBrowserInterface(const char* interface_name); | 35 const void* GetBrowserInterface(const char* interface_name); |
43 // Uses GetBrowserInterface() and CHECKs for NULL. | 36 // Uses GetBrowserInterface() and CHECKs for NULL. |
44 const void* GetBrowserInterfaceSafe(const char* interface_name); | 37 const void* GetBrowserInterfaceSafe(const char* interface_name); |
45 | 38 |
46 // | 39 // |
47 // Stable interfaces. | 40 // Stable interfaces. |
48 // Lookup guarantees that the interface is available by using NULL CHECKs. | 41 // Lookup guarantees that the interface is available by using NULL CHECKs. |
49 // | 42 // |
(...skipping 24 matching lines...) Expand all Loading... |
74 // | 67 // |
75 | 68 |
76 const PPB_CursorControl_Dev* PPBCursorControlDev(); | 69 const PPB_CursorControl_Dev* PPBCursorControlDev(); |
77 const PPB_Font_Dev* PPBFontDev(); | 70 const PPB_Font_Dev* PPBFontDev(); |
78 const PPB_Memory_Dev* PPBMemoryDev(); | 71 const PPB_Memory_Dev* PPBMemoryDev(); |
79 const PPB_Scrollbar_Dev* PPBScrollbarDev(); | 72 const PPB_Scrollbar_Dev* PPBScrollbarDev(); |
80 const PPB_Testing_Dev* PPBTestingDev(); | 73 const PPB_Testing_Dev* PPBTestingDev(); |
81 const PPB_Widget_Dev* PPBWidgetDev(); | 74 const PPB_Widget_Dev* PPBWidgetDev(); |
82 | 75 |
83 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 76 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H |
OLD | NEW |