OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ppapi/c/ppb_audio.h" | 11 #include "ppapi/c/ppb_audio.h" |
12 #include "ppapi/c/ppb_audio_config.h" | 12 #include "ppapi/c/ppb_audio_config.h" |
13 #include "ppapi/c/ppb_core.h" | 13 #include "ppapi/c/ppb_core.h" |
14 #include "ppapi/c/ppb_file_io.h" | 14 #include "ppapi/c/ppb_file_io.h" |
15 #include "ppapi/c/ppb_file_ref.h" | 15 #include "ppapi/c/ppb_file_ref.h" |
16 #include "ppapi/c/ppb_file_system.h" | 16 #include "ppapi/c/ppb_file_system.h" |
17 #include "ppapi/c/ppb_fullscreen.h" | 17 #include "ppapi/c/ppb_fullscreen.h" |
18 #include "ppapi/c/ppb_graphics_2d.h" | 18 #include "ppapi/c/ppb_graphics_2d.h" |
19 #include "ppapi/c/ppb_graphics_3d.h" | 19 #include "ppapi/c/ppb_graphics_3d.h" |
20 #include "ppapi/c/ppb_image_data.h" | 20 #include "ppapi/c/ppb_image_data.h" |
21 #include "ppapi/c/ppb_input_event.h" | 21 #include "ppapi/c/ppb_input_event.h" |
22 #include "ppapi/c/ppb_instance.h" | 22 #include "ppapi/c/ppb_instance.h" |
23 #include "ppapi/c/ppb_messaging.h" | 23 #include "ppapi/c/ppb_messaging.h" |
| 24 #include "ppapi/c/ppb_mouse_cursor.h" |
24 #include "ppapi/c/ppb_opengles2.h" | 25 #include "ppapi/c/ppb_opengles2.h" |
25 #include "ppapi/c/ppb_url_loader.h" | 26 #include "ppapi/c/ppb_url_loader.h" |
26 #include "ppapi/c/ppb_url_request_info.h" | 27 #include "ppapi/c/ppb_url_request_info.h" |
27 #include "ppapi/c/ppb_url_response_info.h" | 28 #include "ppapi/c/ppb_url_response_info.h" |
28 #include "ppapi/c/ppb_var.h" | 29 #include "ppapi/c/ppb_var.h" |
29 #include "ppapi/c/ppb_view.h" | 30 #include "ppapi/c/ppb_view.h" |
30 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | |
31 #include "ppapi/c/dev/ppb_font_dev.h" | 31 #include "ppapi/c/dev/ppb_font_dev.h" |
32 #include "ppapi/c/dev/ppb_memory_dev.h" | 32 #include "ppapi/c/dev/ppb_memory_dev.h" |
33 #include "ppapi/c/dev/ppb_scrollbar_dev.h" | 33 #include "ppapi/c/dev/ppb_scrollbar_dev.h" |
34 #include "ppapi/c/dev/ppb_testing_dev.h" | 34 #include "ppapi/c/dev/ppb_testing_dev.h" |
35 #include "ppapi/c/dev/ppb_widget_dev.h" | 35 #include "ppapi/c/dev/ppb_widget_dev.h" |
36 | 36 |
37 // Looks up the interface and returns its pointer or NULL. | 37 // Looks up the interface and returns its pointer or NULL. |
38 const void* GetBrowserInterface(const char* interface_name); | 38 const void* GetBrowserInterface(const char* interface_name); |
39 // Uses GetBrowserInterface() and CHECKs for NULL. | 39 // Uses GetBrowserInterface() and CHECKs for NULL. |
40 const void* GetBrowserInterfaceSafe(const char* interface_name); | 40 const void* GetBrowserInterfaceSafe(const char* interface_name); |
(...skipping 10 matching lines...) Expand all Loading... |
51 const PPB_FileRef* PPBFileRef(); | 51 const PPB_FileRef* PPBFileRef(); |
52 const PPB_FileSystem* PPBFileSystem(); | 52 const PPB_FileSystem* PPBFileSystem(); |
53 const PPB_Fullscreen* PPBFullscreen(); | 53 const PPB_Fullscreen* PPBFullscreen(); |
54 const PPB_Graphics2D* PPBGraphics2D(); | 54 const PPB_Graphics2D* PPBGraphics2D(); |
55 const PPB_Graphics3D* PPBGraphics3D(); | 55 const PPB_Graphics3D* PPBGraphics3D(); |
56 const PPB_ImageData* PPBImageData(); | 56 const PPB_ImageData* PPBImageData(); |
57 const PPB_InputEvent* PPBInputEvent(); | 57 const PPB_InputEvent* PPBInputEvent(); |
58 const PPB_Instance* PPBInstance(); | 58 const PPB_Instance* PPBInstance(); |
59 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); | 59 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent(); |
60 const PPB_Messaging* PPBMessaging(); | 60 const PPB_Messaging* PPBMessaging(); |
| 61 const PPB_MouseCursor* PPBMouseCursor(); |
61 const PPB_MouseInputEvent* PPBMouseInputEvent(); | 62 const PPB_MouseInputEvent* PPBMouseInputEvent(); |
62 const PPB_OpenGLES2* PPBOpenGLES2(); | 63 const PPB_OpenGLES2* PPBOpenGLES2(); |
63 const PPB_URLLoader* PPBURLLoader(); | 64 const PPB_URLLoader* PPBURLLoader(); |
64 const PPB_URLRequestInfo* PPBURLRequestInfo(); | 65 const PPB_URLRequestInfo* PPBURLRequestInfo(); |
65 const PPB_URLResponseInfo* PPBURLResponseInfo(); | 66 const PPB_URLResponseInfo* PPBURLResponseInfo(); |
66 const PPB_Var* PPBVar(); | 67 const PPB_Var* PPBVar(); |
67 const PPB_View* PPBView(); | 68 const PPB_View* PPBView(); |
68 const PPB_WheelInputEvent* PPBWheelInputEvent(); | 69 const PPB_WheelInputEvent* PPBWheelInputEvent(); |
69 | 70 |
70 // | 71 // |
71 // Experimental (aka Dev) interfaces. | 72 // Experimental (aka Dev) interfaces. |
72 // Lookup returns NULL if the interface is not available. | 73 // Lookup returns NULL if the interface is not available. |
73 // | 74 // |
74 | 75 |
75 const PPB_CursorControl_Dev* PPBCursorControlDev(); | |
76 const PPB_Font_Dev* PPBFontDev(); | 76 const PPB_Font_Dev* PPBFontDev(); |
77 const PPB_Memory_Dev* PPBMemoryDev(); | 77 const PPB_Memory_Dev* PPBMemoryDev(); |
78 const PPB_Scrollbar_Dev* PPBScrollbarDev(); | 78 const PPB_Scrollbar_Dev* PPBScrollbarDev(); |
79 const PPB_Testing_Dev* PPBTestingDev(); | 79 const PPB_Testing_Dev* PPBTestingDev(); |
80 const PPB_Widget_Dev* PPBWidgetDev(); | 80 const PPB_Widget_Dev* PPBWidgetDev(); |
81 | 81 |
82 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 82 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H |
OLD | NEW |