| 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/shared_impl/ppb_input_event_shared.h" | 5 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "ppapi/shared_impl/ppapi_globals.h" | 9 #include "ppapi/shared_impl/ppapi_globals.h" |
| 8 #include "ppapi/shared_impl/var.h" | 10 #include "ppapi/shared_impl/var.h" |
| 9 | 11 |
| 10 using ppapi::thunk::PPB_InputEvent_API; | 12 using ppapi::thunk::PPB_InputEvent_API; |
| 11 | 13 |
| 12 namespace ppapi { | 14 namespace ppapi { |
| 13 | 15 |
| 14 InputEventData::InputEventData() | 16 InputEventData::InputEventData() |
| 15 : is_filtered(false), | 17 : is_filtered(false), |
| 16 event_type(PP_INPUTEVENT_TYPE_UNDEFINED), | 18 event_type(PP_INPUTEVENT_TYPE_UNDEFINED), |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 return 0; | 333 return 0; |
| 332 | 334 |
| 333 InputEventData data; | 335 InputEventData data; |
| 334 data.event_type = event_type; | 336 data.event_type = event_type; |
| 335 data.event_time_stamp = time_stamp; | 337 data.event_time_stamp = time_stamp; |
| 336 data.event_modifiers = modifiers; | 338 data.event_modifiers = modifiers; |
| 337 return (new PPB_InputEvent_Shared(type, instance, data))->GetReference(); | 339 return (new PPB_InputEvent_Shared(type, instance, data))->GetReference(); |
| 338 } | 340 } |
| 339 | 341 |
| 340 } // namespace ppapi | 342 } // namespace ppapi |
| OLD | NEW |