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 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_memory_dev.h" | 8 #include "ppapi/c/dev/ppb_memory_dev.h" |
9 #include "ppapi/c/dev/ppp_find_dev.h" | 9 #include "ppapi/c/dev/ppp_find_dev.h" |
10 #include "ppapi/c/dev/ppp_mouse_lock_dev.h" | |
11 #include "ppapi/c/dev/ppp_printing_dev.h" | 10 #include "ppapi/c/dev/ppp_printing_dev.h" |
12 #include "ppapi/c/dev/ppp_scrollbar_dev.h" | 11 #include "ppapi/c/dev/ppp_scrollbar_dev.h" |
13 #include "ppapi/c/dev/ppp_selection_dev.h" | 12 #include "ppapi/c/dev/ppp_selection_dev.h" |
14 #include "ppapi/c/dev/ppp_widget_dev.h" | 13 #include "ppapi/c/dev/ppp_widget_dev.h" |
15 #include "ppapi/c/dev/ppp_zoom_dev.h" | 14 #include "ppapi/c/dev/ppp_zoom_dev.h" |
16 #include "ppapi/c/pp_module.h" | 15 #include "ppapi/c/pp_module.h" |
17 #include "ppapi/c/ppb.h" | 16 #include "ppapi/c/ppb.h" |
18 #include "ppapi/c/ppb_core.h" | 17 #include "ppapi/c/ppb_core.h" |
19 #include "ppapi/c/ppb_var.h" | 18 #include "ppapi/c/ppb_var.h" |
20 #include "ppapi/c/ppp_input_event.h" | 19 #include "ppapi/c/ppp_input_event.h" |
21 #include "ppapi/c/ppp_instance.h" | 20 #include "ppapi/c/ppp_instance.h" |
22 #include "ppapi/c/ppp_messaging.h" | 21 #include "ppapi/c/ppp_messaging.h" |
| 22 #include "ppapi/c/ppp_mouse_lock.h" |
23 #include "native_client/src/untrusted/irt/irt_ppapi.h" | 23 #include "native_client/src/untrusted/irt/irt_ppapi.h" |
24 | 24 |
25 struct NaClSrpcChannel; | 25 struct NaClSrpcChannel; |
26 | 26 |
27 namespace ppapi_proxy { | 27 namespace ppapi_proxy { |
28 | 28 |
29 // The main SRPC channel is that used to handle foreground (main thread) | 29 // The main SRPC channel is that used to handle foreground (main thread) |
30 // RPC traffic. | 30 // RPC traffic. |
31 NaClSrpcChannel* GetMainSrpcChannel(); | 31 NaClSrpcChannel* GetMainSrpcChannel(); |
32 void SetMainSrpcChannel(NaClSrpcChannel* channel); | 32 void SetMainSrpcChannel(NaClSrpcChannel* channel); |
(...skipping 23 matching lines...) Expand all Loading... |
56 // Support for getting PPP_ plugin interfaces. | 56 // Support for getting PPP_ plugin interfaces. |
57 // Safe version CHECK's for NULL. | 57 // Safe version CHECK's for NULL. |
58 // Since no PppRpcServer function will be called if the interface is NULL, | 58 // Since no PppRpcServer function will be called if the interface is NULL, |
59 // safe version is used to define interface getters below. | 59 // safe version is used to define interface getters below. |
60 const void* GetPluginInterface(const char* interface_name); | 60 const void* GetPluginInterface(const char* interface_name); |
61 const void* GetPluginInterfaceSafe(const char* interface_name); | 61 const void* GetPluginInterfaceSafe(const char* interface_name); |
62 const PPP_Find_Dev* PPPFindInterface(); | 62 const PPP_Find_Dev* PPPFindInterface(); |
63 const PPP_InputEvent* PPPInputEventInterface(); | 63 const PPP_InputEvent* PPPInputEventInterface(); |
64 const PPP_Instance* PPPInstanceInterface(); | 64 const PPP_Instance* PPPInstanceInterface(); |
65 const PPP_Messaging* PPPMessagingInterface(); | 65 const PPP_Messaging* PPPMessagingInterface(); |
66 const PPP_MouseLock_Dev* PPPMouseLockInterface(); | 66 const PPP_MouseLock* PPPMouseLockInterface(); |
67 const PPP_Printing_Dev* PPPPrintingInterface(); | 67 const PPP_Printing_Dev* PPPPrintingInterface(); |
68 const PPP_Scrollbar_Dev* PPPScrollbarInterface(); | 68 const PPP_Scrollbar_Dev* PPPScrollbarInterface(); |
69 const PPP_Selection_Dev* PPPSelectionInterface(); | 69 const PPP_Selection_Dev* PPPSelectionInterface(); |
70 const PPP_Widget_Dev* PPPWidgetInterface(); | 70 const PPP_Widget_Dev* PPPWidgetInterface(); |
71 const PPP_Zoom_Dev* PPPZoomInterface(); | 71 const PPP_Zoom_Dev* PPPZoomInterface(); |
72 | 72 |
73 // Get thread creation/join functions. | 73 // Get thread creation/join functions. |
74 const struct PP_ThreadFunctions* GetThreadCreator(); | 74 const struct PP_ThreadFunctions* GetThreadCreator(); |
75 | 75 |
76 // PPAPI constants used in the proxy. | 76 // PPAPI constants used in the proxy. |
77 extern const PP_Resource kInvalidResourceId; | 77 extern const PP_Resource kInvalidResourceId; |
78 | 78 |
79 } // namespace ppapi_proxy | 79 } // namespace ppapi_proxy |
80 | 80 |
81 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 81 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
OLD | NEW |