OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_ |
| 7 |
| 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/proxy/interface_proxy.h" |
| 10 |
| 11 struct PPP_InputEvent; |
| 12 |
| 13 namespace ppapi { |
| 14 struct InputEventData; |
| 15 } |
| 16 |
| 17 namespace pp { |
| 18 namespace proxy { |
| 19 |
| 20 class PPP_InputEvent_Proxy : public InterfaceProxy { |
| 21 public: |
| 22 PPP_InputEvent_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 23 virtual ~PPP_InputEvent_Proxy(); |
| 24 |
| 25 static const Info* GetInfo(); |
| 26 |
| 27 const PPP_InputEvent* ppp_input_event_target() const { |
| 28 return reinterpret_cast<const PPP_InputEvent*>(target_interface()); |
| 29 } |
| 30 |
| 31 // InterfaceProxy implementation. |
| 32 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 33 |
| 34 private: |
| 35 // Message handlers. |
| 36 void OnMsgHandleInputEvent(PP_Instance instance, |
| 37 const ppapi::InputEventData& data); |
| 38 void OnMsgHandleFilteredInputEvent(PP_Instance instance, |
| 39 const ppapi::InputEventData& data, |
| 40 PP_Bool* result); |
| 41 }; |
| 42 |
| 43 } // namespace proxy |
| 44 } // namespace pp |
| 45 |
| 46 #endif // PPAPI_PROXY_PPP_INPUT_EVENT_PROXY_H_ |
OLD | NEW |