Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.h

Issue 9558009: Add HandleInputEventAck message to allow out-of-process plugins to respond to user gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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_time.h"
10 #include "ppapi/c/pp_var.h" 11 #include "ppapi/c/pp_var.h"
11 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
12 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
13 #include "ppapi/shared_impl/function_group_base.h" 14 #include "ppapi/shared_impl/function_group_base.h"
14 #include "ppapi/shared_impl/host_resource.h" 15 #include "ppapi/shared_impl/host_resource.h"
15 #include "ppapi/shared_impl/ppb_instance_shared.h" 16 #include "ppapi/shared_impl/ppb_instance_shared.h"
16 #include "ppapi/thunk/ppb_instance_api.h" 17 #include "ppapi/thunk/ppb_instance_api.h"
17 #include "ppapi/utility/completion_callback_factory.h" 18 #include "ppapi/utility/completion_callback_factory.h"
18 19
19 // Windows headers interfere with this file. 20 // Windows headers interfere with this file.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual uint32_t GetAudioHardwareOutputBufferSize(PP_Instance instance) 58 virtual uint32_t GetAudioHardwareOutputBufferSize(PP_Instance instance)
58 OVERRIDE; 59 OVERRIDE;
59 virtual PP_Var GetDefaultCharSet(PP_Instance instance) OVERRIDE; 60 virtual PP_Var GetDefaultCharSet(PP_Instance instance) OVERRIDE;
60 virtual void NumberOfFindResultsChanged(PP_Instance instance, 61 virtual void NumberOfFindResultsChanged(PP_Instance instance,
61 int32_t total, 62 int32_t total,
62 PP_Bool final_result) OVERRIDE; 63 PP_Bool final_result) OVERRIDE;
63 virtual void SelectedFindResultChanged(PP_Instance instance, 64 virtual void SelectedFindResultChanged(PP_Instance instance,
64 int32_t index) OVERRIDE; 65 int32_t index) OVERRIDE;
65 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; 66 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE;
66 virtual PP_Bool SetFullscreen(PP_Instance instance, 67 virtual PP_Bool SetFullscreen(PP_Instance instance,
67 PP_Bool fullscreen) OVERRIDE; 68 PP_Bool fullscreen) OVERRIDE;
68 virtual PP_Bool GetScreenSize(PP_Instance instance, 69 virtual PP_Bool GetScreenSize(PP_Instance instance,
69 PP_Size* size) OVERRIDE; 70 PP_Size* size) OVERRIDE;
70 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; 71 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE;
71 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, 72 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
72 PP_Bool fullscreen) OVERRIDE; 73 PP_Bool fullscreen) OVERRIDE;
73 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) 74 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size)
74 OVERRIDE; 75 OVERRIDE;
75 virtual void SampleGamepads(PP_Instance instance, 76 virtual void SampleGamepads(PP_Instance instance,
76 PP_GamepadsSampleData* data) OVERRIDE; 77 PP_GamepadsSampleData* data) OVERRIDE;
77 virtual int32_t RequestInputEvents(PP_Instance instance, 78 virtual int32_t RequestInputEvents(PP_Instance instance,
78 uint32_t event_classes) OVERRIDE; 79 uint32_t event_classes) OVERRIDE;
79 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 80 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
80 uint32_t event_classes) OVERRIDE; 81 uint32_t event_classes) OVERRIDE;
81 virtual void ClearInputEventRequest(PP_Instance instance, 82 virtual void ClearInputEventRequest(PP_Instance instance,
82 uint32_t event_classes) OVERRIDE; 83 uint32_t event_classes) OVERRIDE;
84 virtual void ClosePendingUserGesture(PP_Instance instance,
85 PP_TimeTicks timestamp) OVERRIDE;
83 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; 86 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE;
84 virtual void ZoomLimitsChanged(PP_Instance instance, 87 virtual void ZoomLimitsChanged(PP_Instance instance,
85 double minimum_factor, 88 double minimum_factor,
86 double maximium_factor) OVERRIDE; 89 double maximium_factor) OVERRIDE;
87 virtual PP_Var ResolveRelativeToDocument( 90 virtual PP_Var ResolveRelativeToDocument(
88 PP_Instance instance, 91 PP_Instance instance,
89 PP_Var relative, 92 PP_Var relative,
90 PP_URLComponents_Dev* components) OVERRIDE; 93 PP_URLComponents_Dev* components) OVERRIDE;
91 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; 94 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE;
92 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 95 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 PP_Bool fullscreen, 136 PP_Bool fullscreen,
134 PP_Bool* result); 137 PP_Bool* result);
135 void OnHostMsgFlashGetScreenSize(PP_Instance instance, 138 void OnHostMsgFlashGetScreenSize(PP_Instance instance,
136 PP_Bool* result, 139 PP_Bool* result,
137 PP_Size* size); 140 PP_Size* size);
138 void OnHostMsgRequestInputEvents(PP_Instance instance, 141 void OnHostMsgRequestInputEvents(PP_Instance instance,
139 bool is_filtering, 142 bool is_filtering,
140 uint32_t event_classes); 143 uint32_t event_classes);
141 void OnHostMsgClearInputEvents(PP_Instance instance, 144 void OnHostMsgClearInputEvents(PP_Instance instance,
142 uint32_t event_classes); 145 uint32_t event_classes);
146 void OnMsgHandleInputEventAck(PP_Instance instance,
147 PP_TimeTicks timestamp);
143 void OnHostMsgPostMessage(PP_Instance instance, 148 void OnHostMsgPostMessage(PP_Instance instance,
144 SerializedVarReceiveInput message); 149 SerializedVarReceiveInput message);
145 void OnHostMsgLockMouse(PP_Instance instance); 150 void OnHostMsgLockMouse(PP_Instance instance);
146 void OnHostMsgUnlockMouse(PP_Instance instance); 151 void OnHostMsgUnlockMouse(PP_Instance instance);
147 void OnHostMsgResolveRelativeToDocument(PP_Instance instance, 152 void OnHostMsgResolveRelativeToDocument(PP_Instance instance,
148 SerializedVarReceiveInput relative, 153 SerializedVarReceiveInput relative,
149 SerializedVarReturnValue result); 154 SerializedVarReturnValue result);
150 void OnHostMsgDocumentCanRequest(PP_Instance instance, 155 void OnHostMsgDocumentCanRequest(PP_Instance instance,
151 SerializedVarReceiveInput url, 156 SerializedVarReceiveInput url,
152 PP_Bool* result); 157 PP_Bool* result);
(...skipping 11 matching lines...) Expand all
164 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); 169 void MouseLockCompleteInHost(int32_t result, PP_Instance instance);
165 170
166 pp::CompletionCallbackFactory<PPB_Instance_Proxy, 171 pp::CompletionCallbackFactory<PPB_Instance_Proxy,
167 ProxyNonThreadSafeRefCount> callback_factory_; 172 ProxyNonThreadSafeRefCount> callback_factory_;
168 }; 173 };
169 174
170 } // namespace proxy 175 } // namespace proxy
171 } // namespace ppapi 176 } // namespace ppapi
172 177
173 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 178 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698