Chromium Code Reviews| Index: content/common/input/synthetic_pointer_action_params.h |
| diff --git a/content/common/input/synthetic_pointer_action_params.h b/content/common/input/synthetic_pointer_action_params.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cadf70b0011eb559c719101689f2d72088902713 |
| --- /dev/null |
| +++ b/content/common/input/synthetic_pointer_action_params.h |
| @@ -0,0 +1,34 @@ |
| +// 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. |
| + |
| +#ifndef CONTENT_COMMON_INPUT_SYNTHETIC_POINTER_ACTION_PARAMS_H_ |
| +#define CONTENT_COMMON_INPUT_SYNTHETIC_POINTER_ACTION_PARAMS_H_ |
| + |
| +#include "content/common/content_export.h" |
| +#include "content/common/input/synthetic_gesture_params.h" |
| +#include "ui/gfx/geometry/point_f.h" |
| + |
| +namespace content { |
| + |
| +struct CONTENT_EXPORT SyntheticPointerActionParams |
| + : public SyntheticGestureParams { |
| + public: |
| + SyntheticPointerActionParams(); |
| + SyntheticPointerActionParams(const SyntheticPointerActionParams& other); |
| + ~SyntheticPointerActionParams() override; |
| + |
| + GestureType GetGestureType() const override; |
| + |
| + gfx::PointF position; |
| + int index; |
| + float duration_ms; |
|
samuong
2016/02/17 22:15:48
I'm not sure if duration is necessary here. We sho
tdresser
2016/02/18 14:46:34
This is required to implement the delay(float) (ht
lanwei
2016/02/26 18:39:26
I think we do not need to pass this information to
|
| + PointerActionType pointer_action_type; |
| + |
| + static const SyntheticPointerActionParams* Cast( |
| + const SyntheticGestureParams* gesture_params); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_INPUT_SYNTHETIC_POINTER_ACTION_PARAMS_H_ |