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 } | |
15 | |
16 SyntheticPointerActionListParams::SyntheticPointerActionListParams( | |
17 const SyntheticPointerActionListParams& other) | |
Navid Zolghadr
2016/11/01 19:08:42
Don't we need to call the cctor of the parent clas
lanwei
2016/12/04 18:08:02
Acknowledged.
We have to keep this copy construct
| |
18 : param_list(other.param_list) {} | |
19 | |
20 SyntheticPointerActionListParams::~SyntheticPointerActionListParams() {} | |
21 | |
22 SyntheticGestureParams::GestureType | |
23 SyntheticPointerActionListParams::GetGestureType() const { | |
24 return POINTER_ACTION_LIST; | |
25 } | |
26 | |
27 const SyntheticPointerActionListParams* SyntheticPointerActionListParams::Cast( | |
28 const SyntheticGestureParams* gesture_params) { | |
29 DCHECK(gesture_params); | |
30 DCHECK_EQ(POINTER_ACTION_LIST, gesture_params->GetGestureType()); | |
31 return static_cast<const SyntheticPointerActionListParams*>(gesture_params); | |
32 } | |
33 | |
34 } // namespace content | |
OLD | NEW |