Revert of Integrate SIMD optimisations for zlib (patchset #14 id:280001 of https...
[chromium-blink-merge.git] / content / common / input / synthetic_tap_gesture_params.cc
blobc3bb8ffee18b669e1c65d365870884dd8ee5f3b6
1 // Copyright 2013 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.
5 #include "content/common/input/synthetic_tap_gesture_params.h"
7 #include "base/logging.h"
9 namespace content {
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).
13 SyntheticTapGestureParams::SyntheticTapGestureParams() : duration_ms(50) {}
15 SyntheticTapGestureParams::SyntheticTapGestureParams(
16 const SyntheticTapGestureParams& other)
17 : SyntheticGestureParams(other),
18 position(other.position),
19 duration_ms(other.duration_ms) {}
21 SyntheticTapGestureParams::~SyntheticTapGestureParams() {}
23 SyntheticGestureParams::GestureType SyntheticTapGestureParams::GetGestureType()
24 const {
25 return TAP_GESTURE;
28 const SyntheticTapGestureParams* SyntheticTapGestureParams::Cast(
29 const SyntheticGestureParams* gesture_params) {
30 DCHECK(gesture_params);
31 DCHECK_EQ(TAP_GESTURE, gesture_params->GetGestureType());
32 return static_cast<const SyntheticTapGestureParams*>(gesture_params);
35 } // namespace content