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

Side by Side Diff: ppapi/proxy/ppp_input_event_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/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppp_input_event_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_PPP_INPUT_EVENT_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_
6 #define PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_ 6 #define PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_time.h"
9 #include "ppapi/c/ppp_input_event.h" 10 #include "ppapi/c/ppp_input_event.h"
10 #include "ppapi/proxy/interface_proxy.h" 11 #include "ppapi/proxy/interface_proxy.h"
11 12
12 namespace ppapi { 13 namespace ppapi {
13 14
14 struct InputEventData; 15 struct InputEventData;
15 16
16 namespace proxy { 17 namespace proxy {
17 18
18 class PPP_InputEvent_Proxy : public InterfaceProxy { 19 class PPP_InputEvent_Proxy : public InterfaceProxy {
19 public: 20 public:
20 PPP_InputEvent_Proxy(Dispatcher* dispatcher); 21 PPP_InputEvent_Proxy(Dispatcher* dispatcher);
21 virtual ~PPP_InputEvent_Proxy(); 22 virtual ~PPP_InputEvent_Proxy();
22 23
23 static const Info* GetInfo(); 24 static const Info* GetInfo();
24 25
25 // InterfaceProxy implementation. 26 // InterfaceProxy implementation.
26 virtual bool OnMessageReceived(const IPC::Message& msg); 27 virtual bool OnMessageReceived(const IPC::Message& msg);
27 28
28 private: 29 private:
29 // Message handlers. 30 // Message handlers.
30 void OnMsgHandleInputEvent(PP_Instance instance, 31 void OnMsgHandleInputEvent(PP_Instance instance,
31 const ppapi::InputEventData& data); 32 const ppapi::InputEventData& data);
32 void OnMsgHandleFilteredInputEvent(PP_Instance instance, 33 void OnMsgHandleFilteredInputEvent(PP_Instance instance,
33 const ppapi::InputEventData& data, 34 const ppapi::InputEventData& data,
34 PP_Bool* result); 35 PP_Bool* result);
35 36
37 void HandleInputEventAck(PP_Instance instance, PP_TimeTicks timestamp);
38
36 // When this proxy is in the plugin side, this value caches the interface 39 // When this proxy is in the plugin side, this value caches the interface
37 // pointer so we don't have to retrieve it from the dispatcher each time. 40 // pointer so we don't have to retrieve it from the dispatcher each time.
38 // In the host, this value is always NULL. 41 // In the host, this value is always NULL.
39 const PPP_InputEvent* ppp_input_event_impl_; 42 const PPP_InputEvent* ppp_input_event_impl_;
40 43
41 DISALLOW_COPY_AND_ASSIGN(PPP_InputEvent_Proxy); 44 DISALLOW_COPY_AND_ASSIGN(PPP_InputEvent_Proxy);
42 }; 45 };
43 46
44 } // namespace proxy 47 } // namespace proxy
45 } // namespace ppapi 48 } // namespace ppapi
46 49
47 #endif // PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_ 50 #endif // PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppp_input_event_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698