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 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ |
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | |
9 #include "ppapi/c/dev/ppb_find_dev.h" | 8 #include "ppapi/c/dev/ppb_find_dev.h" |
10 #include "ppapi/c/dev/ppb_font_dev.h" | 9 #include "ppapi/c/dev/ppb_font_dev.h" |
11 #include "ppapi/c/dev/ppb_memory_dev.h" | 10 #include "ppapi/c/dev/ppb_memory_dev.h" |
12 #include "ppapi/c/dev/ppb_scrollbar_dev.h" | 11 #include "ppapi/c/dev/ppb_scrollbar_dev.h" |
13 #include "ppapi/c/dev/ppb_testing_dev.h" | 12 #include "ppapi/c/dev/ppb_testing_dev.h" |
14 #include "ppapi/c/dev/ppb_widget_dev.h" | 13 #include "ppapi/c/dev/ppb_widget_dev.h" |
15 #include "ppapi/c/dev/ppb_zoom_dev.h" | 14 #include "ppapi/c/dev/ppb_zoom_dev.h" |
16 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
17 #include "ppapi/c/pp_module.h" | 16 #include "ppapi/c/pp_module.h" |
18 #include "ppapi/c/ppb.h" | 17 #include "ppapi/c/ppb.h" |
19 #include "ppapi/c/ppb_core.h" | 18 #include "ppapi/c/ppb_core.h" |
20 #include "ppapi/c/ppb_file_io.h" | 19 #include "ppapi/c/ppb_file_io.h" |
21 #include "ppapi/c/ppb_file_ref.h" | 20 #include "ppapi/c/ppb_file_ref.h" |
22 #include "ppapi/c/ppb_file_system.h" | 21 #include "ppapi/c/ppb_file_system.h" |
23 #include "ppapi/c/ppb_fullscreen.h" | 22 #include "ppapi/c/ppb_fullscreen.h" |
24 #include "ppapi/c/ppb_gamepad.h" | 23 #include "ppapi/c/ppb_gamepad.h" |
25 #include "ppapi/c/ppb_graphics_2d.h" | 24 #include "ppapi/c/ppb_graphics_2d.h" |
26 #include "ppapi/c/ppb_graphics_3d.h" | 25 #include "ppapi/c/ppb_graphics_3d.h" |
27 #include "ppapi/c/ppb_image_data.h" | 26 #include "ppapi/c/ppb_image_data.h" |
28 #include "ppapi/c/ppb_input_event.h" | 27 #include "ppapi/c/ppb_input_event.h" |
29 #include "ppapi/c/ppb_instance.h" | 28 #include "ppapi/c/ppb_instance.h" |
30 #include "ppapi/c/ppb_messaging.h" | 29 #include "ppapi/c/ppb_messaging.h" |
| 30 #include "ppapi/c/ppb_mouse_cursor.h" |
31 #include "ppapi/c/ppb_mouse_lock.h" | 31 #include "ppapi/c/ppb_mouse_lock.h" |
32 #include "ppapi/c/ppb_url_loader.h" | 32 #include "ppapi/c/ppb_url_loader.h" |
33 #include "ppapi/c/ppb_url_request_info.h" | 33 #include "ppapi/c/ppb_url_request_info.h" |
34 #include "ppapi/c/ppb_url_response_info.h" | 34 #include "ppapi/c/ppb_url_response_info.h" |
35 #include "ppapi/c/ppb_var.h" | 35 #include "ppapi/c/ppb_var.h" |
36 #include "ppapi/c/ppb_var_array_buffer.h" | 36 #include "ppapi/c/ppb_var_array_buffer.h" |
37 #include "ppapi/c/ppb_view.h" | 37 #include "ppapi/c/ppb_view.h" |
38 #include "ppapi/c/ppb_websocket.h" | 38 #include "ppapi/c/ppb_websocket.h" |
39 #include "ppapi/c/private/ppb_host_resolver_private.h" | 39 #include "ppapi/c/private/ppb_host_resolver_private.h" |
40 #include "ppapi/c/private/ppb_net_address_private.h" | 40 #include "ppapi/c/private/ppb_net_address_private.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Safe version CHECK's for NULL. | 95 // Safe version CHECK's for NULL. |
96 void SetPPBGetInterface(PPB_GetInterface get_interface_function, | 96 void SetPPBGetInterface(PPB_GetInterface get_interface_function, |
97 bool allow_dev_interfaces, | 97 bool allow_dev_interfaces, |
98 bool allow_3d_interfaces); | 98 bool allow_3d_interfaces); |
99 const void* GetBrowserInterface(const char* interface_name); | 99 const void* GetBrowserInterface(const char* interface_name); |
100 const void* GetBrowserInterfaceSafe(const char* interface_name); | 100 const void* GetBrowserInterfaceSafe(const char* interface_name); |
101 // Functions marked "shared" are to be provided by both the browser and the | 101 // Functions marked "shared" are to be provided by both the browser and the |
102 // plugin side of the proxy, so they can be used by the shared proxy code | 102 // plugin side of the proxy, so they can be used by the shared proxy code |
103 // under both trusted and untrusted compilation. | 103 // under both trusted and untrusted compilation. |
104 const PPB_Core* PPBCoreInterface(); // shared | 104 const PPB_Core* PPBCoreInterface(); // shared |
105 const PPB_CursorControl_Dev* PPBCursorControlInterface(); | 105 const PPB_MouseCursor_1_0* PPBMouseCursorInterface(); |
106 const PPB_FileIO* PPBFileIOInterface(); | 106 const PPB_FileIO* PPBFileIOInterface(); |
107 const PPB_FileRef* PPBFileRefInterface(); | 107 const PPB_FileRef* PPBFileRefInterface(); |
108 const PPB_FileSystem* PPBFileSystemInterface(); | 108 const PPB_FileSystem* PPBFileSystemInterface(); |
109 const PPB_Find_Dev* PPBFindInterface(); | 109 const PPB_Find_Dev* PPBFindInterface(); |
110 const PPB_Font_Dev* PPBFontInterface(); | 110 const PPB_Font_Dev* PPBFontInterface(); |
111 const PPB_Fullscreen* PPBFullscreenInterface(); | 111 const PPB_Fullscreen* PPBFullscreenInterface(); |
112 const PPB_Gamepad* PPBGamepadInterface(); | 112 const PPB_Gamepad* PPBGamepadInterface(); |
113 const PPB_Graphics2D* PPBGraphics2DInterface(); | 113 const PPB_Graphics2D* PPBGraphics2DInterface(); |
114 const PPB_Graphics3D* PPBGraphics3DInterface(); | 114 const PPB_Graphics3D* PPBGraphics3DInterface(); |
115 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface(); | 115 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface(); |
(...skipping 24 matching lines...) Expand all Loading... |
140 const PPB_WebSocket* PPBWebSocketInterface(); | 140 const PPB_WebSocket* PPBWebSocketInterface(); |
141 const PPB_Widget_Dev* PPBWidgetInterface(); | 141 const PPB_Widget_Dev* PPBWidgetInterface(); |
142 const PPB_Zoom_Dev* PPBZoomInterface(); | 142 const PPB_Zoom_Dev* PPBZoomInterface(); |
143 | 143 |
144 // PPAPI constants used in the proxy. | 144 // PPAPI constants used in the proxy. |
145 extern const PP_Resource kInvalidResourceId; | 145 extern const PP_Resource kInvalidResourceId; |
146 | 146 |
147 } // namespace ppapi_proxy | 147 } // namespace ppapi_proxy |
148 | 148 |
149 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ | 149 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ |
OLD | NEW |