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 PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/c/pp_var.h" | 10 #include "ppapi/c/pp_var.h" |
11 #include "ppapi/proxy/host_resource.h" | |
12 #include "ppapi/proxy/interface_proxy.h" | 11 #include "ppapi/proxy/interface_proxy.h" |
13 #include "ppapi/shared_impl/function_group_base.h" | 12 #include "ppapi/shared_impl/function_group_base.h" |
| 13 #include "ppapi/shared_impl/host_resource.h" |
14 #include "ppapi/shared_impl/instance_impl.h" | 14 #include "ppapi/shared_impl/instance_impl.h" |
15 #include "ppapi/thunk/ppb_instance_api.h" | 15 #include "ppapi/thunk/ppb_instance_api.h" |
16 | 16 |
17 namespace pp { | 17 namespace pp { |
18 namespace proxy { | 18 namespace proxy { |
19 | 19 |
20 class SerializedVarReceiveInput; | 20 class SerializedVarReceiveInput; |
21 class SerializedVarOutParam; | 21 class SerializedVarOutParam; |
22 class SerializedVarReturnValue; | 22 class SerializedVarReturnValue; |
23 | 23 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual void SubscribeToPolicyUpdates(PP_Instance instance) OVERRIDE; | 67 virtual void SubscribeToPolicyUpdates(PP_Instance instance) OVERRIDE; |
68 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; | 68 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; |
69 | 69 |
70 private: | 70 private: |
71 // Message handlers. | 71 // Message handlers. |
72 void OnMsgGetWindowObject(PP_Instance instance, | 72 void OnMsgGetWindowObject(PP_Instance instance, |
73 SerializedVarReturnValue result); | 73 SerializedVarReturnValue result); |
74 void OnMsgGetOwnerElementObject(PP_Instance instance, | 74 void OnMsgGetOwnerElementObject(PP_Instance instance, |
75 SerializedVarReturnValue result); | 75 SerializedVarReturnValue result); |
76 void OnMsgBindGraphics(PP_Instance instance, | 76 void OnMsgBindGraphics(PP_Instance instance, |
77 HostResource device, | 77 const ppapi::HostResource& device, |
78 PP_Bool* result); | 78 PP_Bool* result); |
79 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); | 79 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); |
80 void OnMsgExecuteScript(PP_Instance instance, | 80 void OnMsgExecuteScript(PP_Instance instance, |
81 SerializedVarReceiveInput script, | 81 SerializedVarReceiveInput script, |
82 SerializedVarOutParam out_exception, | 82 SerializedVarOutParam out_exception, |
83 SerializedVarReturnValue result); | 83 SerializedVarReturnValue result); |
84 void OnMsgSetFullscreen(PP_Instance instance, | 84 void OnMsgSetFullscreen(PP_Instance instance, |
85 PP_Bool fullscreen, | 85 PP_Bool fullscreen, |
86 PP_Bool* result); | 86 PP_Bool* result); |
87 void OnMsgGetScreenSize(PP_Instance instance, | 87 void OnMsgGetScreenSize(PP_Instance instance, |
88 PP_Bool* result, | 88 PP_Bool* result, |
89 PP_Size* size); | 89 PP_Size* size); |
90 void OnMsgRequestInputEvents(PP_Instance instance, | 90 void OnMsgRequestInputEvents(PP_Instance instance, |
91 bool is_filtering, | 91 bool is_filtering, |
92 uint32_t event_classes); | 92 uint32_t event_classes); |
93 void OnMsgClearInputEvents(PP_Instance instance, | 93 void OnMsgClearInputEvents(PP_Instance instance, |
94 uint32_t event_classes); | 94 uint32_t event_classes); |
95 void OnMsgPostMessage(PP_Instance instance, | 95 void OnMsgPostMessage(PP_Instance instance, |
96 SerializedVarReceiveInput message); | 96 SerializedVarReceiveInput message); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace proxy | 99 } // namespace proxy |
100 } // namespace pp | 100 } // namespace pp |
101 | 101 |
102 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 102 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |