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 PPAPI_NATIVE_CLIENT_TESTS_PPAPI_TEST_LIB_GET_BROWSER_INTERFACE_H_ |
9 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 9 #define PPAPI_NATIVE_CLIENT_TESTS_PPAPI_TEST_LIB_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_mouse_cursor.h" |
25 #include "ppapi/c/ppb_opengles2.h" | 25 #include "ppapi/c/ppb_opengles2.h" |
26 #include "ppapi/c/ppb_url_loader.h" | 26 #include "ppapi/c/ppb_url_loader.h" |
27 #include "ppapi/c/ppb_url_request_info.h" | 27 #include "ppapi/c/ppb_url_request_info.h" |
28 #include "ppapi/c/ppb_url_response_info.h" | 28 #include "ppapi/c/ppb_url_response_info.h" |
29 #include "ppapi/c/ppb_var.h" | 29 #include "ppapi/c/ppb_var.h" |
30 #include "ppapi/c/ppb_view.h" | 30 #include "ppapi/c/ppb_view.h" |
31 #include "ppapi/c/dev/ppb_font_dev.h" | |
32 #include "ppapi/c/dev/ppb_memory_dev.h" | 31 #include "ppapi/c/dev/ppb_memory_dev.h" |
33 #include "ppapi/c/private/ppb_testing_private.h" | 32 #include "ppapi/c/private/ppb_testing_private.h" |
34 | 33 |
35 // Looks up the interface and returns its pointer or NULL. | 34 // Looks up the interface and returns its pointer or NULL. |
36 const void* GetBrowserInterface(const char* interface_name); | 35 const void* GetBrowserInterface(const char* interface_name); |
37 // Uses GetBrowserInterface() and CHECKs for NULL. | 36 // Uses GetBrowserInterface() and CHECKs for NULL. |
38 const void* GetBrowserInterfaceSafe(const char* interface_name); | 37 const void* GetBrowserInterfaceSafe(const char* interface_name); |
39 | 38 |
40 // | 39 // |
41 // Stable interfaces. | 40 // Stable interfaces. |
(...skipping 22 matching lines...) Expand all Loading... |
64 const PPB_URLResponseInfo* PPBURLResponseInfo(); | 63 const PPB_URLResponseInfo* PPBURLResponseInfo(); |
65 const PPB_Var* PPBVar(); | 64 const PPB_Var* PPBVar(); |
66 const PPB_View* PPBView(); | 65 const PPB_View* PPBView(); |
67 const PPB_WheelInputEvent* PPBWheelInputEvent(); | 66 const PPB_WheelInputEvent* PPBWheelInputEvent(); |
68 | 67 |
69 // | 68 // |
70 // Experimental (aka Dev) interfaces. | 69 // Experimental (aka Dev) interfaces. |
71 // Lookup returns NULL if the interface is not available. | 70 // Lookup returns NULL if the interface is not available. |
72 // | 71 // |
73 | 72 |
74 const PPB_Font_Dev* PPBFontDev(); | |
75 const PPB_Memory_Dev* PPBMemoryDev(); | 73 const PPB_Memory_Dev* PPBMemoryDev(); |
76 | 74 |
77 // | 75 // |
78 // Private interfaces. | 76 // Private interfaces. |
79 // Lookup returns NULL if the interface is not available. | 77 // Lookup returns NULL if the interface is not available. |
80 // | 78 // |
81 | 79 |
82 const PPB_Testing_Private* PPBTestingPrivate(); | 80 const PPB_Testing_Private* PPBTestingPrivate(); |
83 | 81 |
84 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_GET_BROWSER_INTERFACE_H | 82 #endif // PPAPI_NATIVE_CLIENT_TESTS_PPAPI_TEST_LIB_GET_BROWSER_INTERFACE_H_ |
OLD | NEW |