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
3 // found in the LICENSE file.
5 #ifndef PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_
6 #define PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_
8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_time.h"
10 #include "ppapi/c/ppp_input_event.h"
11 #include "ppapi/proxy/interface_proxy.h"
15 struct InputEventData
;
19 class PPP_InputEvent_Proxy
: public InterfaceProxy
{
21 PPP_InputEvent_Proxy(Dispatcher
* dispatcher
);
22 virtual ~PPP_InputEvent_Proxy();
24 static const Info
* GetInfo();
26 // InterfaceProxy implementation.
27 virtual bool OnMessageReceived(const IPC::Message
& msg
);
31 void OnMsgHandleInputEvent(PP_Instance instance
,
32 const ppapi::InputEventData
& data
);
33 void OnMsgHandleFilteredInputEvent(PP_Instance instance
,
34 const ppapi::InputEventData
& data
,
37 void HandleInputEventAck(PP_Instance instance
, PP_TimeTicks timestamp
);
39 // When this proxy is in the plugin side, this value caches the interface
40 // pointer so we don't have to retrieve it from the dispatcher each time.
41 // In the host, this value is always NULL.
42 const PPP_InputEvent
* ppp_input_event_impl_
;
44 DISALLOW_COPY_AND_ASSIGN(PPP_InputEvent_Proxy
);
50 #endif // PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_