OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_INPUT_EVENT_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INPUT_EVENT_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_INPUT_EVENT_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INPUT_EVENT_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
11 #include "ppapi/shared_impl/input_event_impl.h" | 11 #include "ppapi/shared_impl/input_event_impl.h" |
12 | 12 |
13 namespace ppapi { | 13 namespace ppapi { |
| 14 |
14 struct InputEventData; | 15 struct InputEventData; |
15 } | |
16 | 16 |
17 namespace pp { | |
18 namespace proxy { | 17 namespace proxy { |
19 | 18 |
20 class PPB_InputEvent_Proxy : public InterfaceProxy { | 19 class PPB_InputEvent_Proxy : public InterfaceProxy { |
21 public: | 20 public: |
22 PPB_InputEvent_Proxy(Dispatcher* dispatcher, const void* target_interface); | 21 PPB_InputEvent_Proxy(Dispatcher* dispatcher, const void* target_interface); |
23 virtual ~PPB_InputEvent_Proxy(); | 22 virtual ~PPB_InputEvent_Proxy(); |
24 | 23 |
25 static const Info* GetInputEventInfo(); | 24 static const Info* GetInputEventInfo(); |
26 static const Info* GetKeyboardInputEventInfo(); | 25 static const Info* GetKeyboardInputEventInfo(); |
27 static const Info* GetMouseInputEventInfo(); | 26 static const Info* GetMouseInputEventInfo(); |
28 static const Info* GetWheelInputEventInfo(); | 27 static const Info* GetWheelInputEventInfo(); |
29 | 28 |
30 static PP_Resource CreateProxyResource(PP_Instance instance, | 29 static PP_Resource CreateProxyResource(PP_Instance instance, |
31 const ppapi::InputEventData& data); | 30 const ppapi::InputEventData& data); |
32 | 31 |
33 // InterfaceProxy implementation. | 32 // InterfaceProxy implementation. |
34 virtual bool OnMessageReceived(const IPC::Message& msg); | 33 virtual bool OnMessageReceived(const IPC::Message& msg); |
35 | 34 |
36 private: | 35 private: |
37 DISALLOW_COPY_AND_ASSIGN(PPB_InputEvent_Proxy); | 36 DISALLOW_COPY_AND_ASSIGN(PPB_InputEvent_Proxy); |
38 }; | 37 }; |
39 | 38 |
40 } // namespace proxy | 39 } // namespace proxy |
41 } // namespace pp | 40 } // namespace ppapi |
42 | 41 |
43 #endif // PPAPI_PROXY_PPB_INPUT_EVENT_PROXY_H_ | 42 #endif // PPAPI_PROXY_PPB_INPUT_EVENT_PROXY_H_ |
OLD | NEW |