| Index: content/common/input/synthetic_pointer_action_list_params.cc
|
| diff --git a/content/common/input/synthetic_pointer_action_list_params.cc b/content/common/input/synthetic_pointer_action_list_params.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f44c0601e5bf1076300b1a289ab55f157a50a320
|
| --- /dev/null
|
| +++ b/content/common/input/synthetic_pointer_action_list_params.cc
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/common/input/synthetic_pointer_action_list_params.h"
|
| +
|
| +namespace content {
|
| +
|
| +SyntheticPointerActionListParams::SyntheticPointerActionListParams() {}
|
| +
|
| +SyntheticPointerActionListParams::SyntheticPointerActionListParams(
|
| + SyntheticPointerActionParams param) {
|
| + param_list.push_back(param);
|
| + gesture_source_type = param.gesture_source_type;
|
| +}
|
| +
|
| +SyntheticPointerActionListParams::SyntheticPointerActionListParams(
|
| + std::vector<SyntheticPointerActionParams>& param_list)
|
| + : param_list(param_list) {}
|
| +
|
| +SyntheticPointerActionListParams::SyntheticPointerActionListParams(
|
| + const SyntheticPointerActionListParams& other)
|
| + : param_list(other.param_list) {}
|
| +
|
| +SyntheticPointerActionListParams::~SyntheticPointerActionListParams() {}
|
| +
|
| +SyntheticGestureParams::GestureType
|
| +SyntheticPointerActionListParams::GetGestureType() const {
|
| + return POINTER_ACTION_LIST;
|
| +}
|
| +
|
| +const SyntheticPointerActionListParams* SyntheticPointerActionListParams::Cast(
|
| + const SyntheticGestureParams* gesture_params) {
|
| + DCHECK(gesture_params);
|
| + DCHECK_EQ(POINTER_ACTION_LIST, gesture_params->GetGestureType());
|
| + return static_cast<const SyntheticPointerActionListParams*>(gesture_params);
|
| +}
|
| +
|
| +} // namespace content
|
|
|