OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #include "content/common/input/synthetic_pointer_action_list_params.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 SyntheticPointerActionListParams::SyntheticPointerActionListParams() {} |
| 10 |
| 11 SyntheticPointerActionListParams::SyntheticPointerActionListParams( |
| 12 SyntheticPointerActionParams param) { |
| 13 param_list.push_back(param); |
| 14 gesture_source_type = param.gesture_source_type; |
| 15 } |
| 16 |
| 17 SyntheticPointerActionListParams::SyntheticPointerActionListParams( |
| 18 std::vector<SyntheticPointerActionParams>& param_list) |
| 19 : param_list(param_list) {} |
| 20 |
| 21 SyntheticPointerActionListParams::SyntheticPointerActionListParams( |
| 22 const SyntheticPointerActionListParams& other) |
| 23 : param_list(other.param_list) {} |
| 24 |
| 25 SyntheticPointerActionListParams::~SyntheticPointerActionListParams() {} |
| 26 |
| 27 SyntheticGestureParams::GestureType |
| 28 SyntheticPointerActionListParams::GetGestureType() const { |
| 29 return POINTER_ACTION_LIST; |
| 30 } |
| 31 |
| 32 const SyntheticPointerActionListParams* SyntheticPointerActionListParams::Cast( |
| 33 const SyntheticGestureParams* gesture_params) { |
| 34 DCHECK(gesture_params); |
| 35 DCHECK_EQ(POINTER_ACTION_LIST, gesture_params->GetGestureType()); |
| 36 return static_cast<const SyntheticPointerActionListParams*>(gesture_params); |
| 37 } |
| 38 |
| 39 } // namespace content |
OLD | NEW |