OLD | NEW |
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 #include "ppapi/proxy/ppp_input_event_proxy.h" | 5 #include "ppapi/proxy/ppp_input_event_proxy.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "ppapi/c/ppp_input_event.h" | 8 #include "ppapi/c/ppp_input_event.h" |
8 #include "ppapi/proxy/host_dispatcher.h" | 9 #include "ppapi/proxy/host_dispatcher.h" |
9 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
10 #include "ppapi/proxy/ppapi_messages.h" | 11 #include "ppapi/proxy/ppapi_messages.h" |
11 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 12 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
12 #include "ppapi/thunk/enter.h" | 13 #include "ppapi/thunk/enter.h" |
13 #include "ppapi/thunk/ppb_input_event_api.h" | 14 #include "ppapi/thunk/ppb_input_event_api.h" |
14 | 15 |
15 using ppapi::thunk::EnterResourceNoLock; | 16 using ppapi::thunk::EnterResourceNoLock; |
16 using ppapi::thunk::PPB_InputEvent_API; | 17 using ppapi::thunk::PPB_InputEvent_API; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 PP_Bool* result) { | 104 PP_Bool* result) { |
104 scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared( | 105 scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared( |
105 OBJECT_IS_PROXY, instance, data)); | 106 OBJECT_IS_PROXY, instance, data)); |
106 *result = CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent, | 107 *result = CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent, |
107 instance, | 108 instance, |
108 resource->pp_resource()); | 109 resource->pp_resource()); |
109 } | 110 } |
110 | 111 |
111 } // namespace proxy | 112 } // namespace proxy |
112 } // namespace ppapi | 113 } // namespace ppapi |
OLD | NEW |