Chromium Code Reviews| 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_params.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace content { | |
| 10 | |
| 11 // Set the default tap duration to 50ms to lie within the bounds of the Aura | |
| 12 // gesture recognizer for identifying clicks (currently 0.01s-0.80s). | |
|
tdresser
2016/02/29 15:06:56
Is isn't clear what code this comment is referring
lanwei
2016/03/07 05:41:58
Done.
| |
| 13 SyntheticPointerActionParams::SyntheticPointerActionParams() {} | |
| 14 | |
| 15 SyntheticPointerActionParams::SyntheticPointerActionParams( | |
| 16 const SyntheticPointerActionParams& other) | |
| 17 : SyntheticGestureParams(other), | |
| 18 index(other.index), | |
| 19 position(other.position), | |
| 20 pointer_action_type(other.pointer_action_type), | |
| 21 process(other.process) {} | |
| 22 | |
| 23 SyntheticPointerActionParams::~SyntheticPointerActionParams() {} | |
| 24 | |
| 25 SyntheticGestureParams::GestureType | |
| 26 SyntheticPointerActionParams::GetGestureType() const { | |
| 27 return POINTER_ACTION; | |
| 28 } | |
| 29 | |
| 30 const SyntheticPointerActionParams* SyntheticPointerActionParams::Cast( | |
| 31 const SyntheticGestureParams* gesture_params) { | |
| 32 DCHECK(gesture_params); | |
| 33 DCHECK_EQ(POINTER_ACTION, gesture_params->GetGestureType()); | |
| 34 return static_cast<const SyntheticPointerActionParams*>(gesture_params); | |
| 35 } | |
| 36 | |
| 37 } // namespace content | |
| OLD | NEW |