Refactor android test results logging.
[chromium-blink-merge.git] / ppapi / proxy / ppp_input_event_proxy.h
blobe326aec260d7f61fdb77e585b1ac3b2f7a84382d
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"
13 namespace ppapi {
15 struct InputEventData;
17 namespace proxy {
19 class PPP_InputEvent_Proxy : public InterfaceProxy {
20 public:
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);
29 private:
30 // Message handlers.
31 void OnMsgHandleInputEvent(PP_Instance instance,
32 const ppapi::InputEventData& data);
33 void OnMsgHandleFilteredInputEvent(PP_Instance instance,
34 const ppapi::InputEventData& data,
35 PP_Bool* result);
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);
47 } // namespace proxy
48 } // namespace ppapi
50 #endif // PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_