Index: content/common/input/synthetic_pointer_action_params.cc |
diff --git a/content/common/input/synthetic_pointer_action_params.cc b/content/common/input/synthetic_pointer_action_params.cc |
index 593413b9822e8a52668cce5488c953ec302c8854..2baa4ce809ef46e978da6e350d222a024748fbf9 100644 |
--- a/content/common/input/synthetic_pointer_action_params.cc |
+++ b/content/common/input/synthetic_pointer_action_params.cc |
@@ -7,42 +7,17 @@ |
namespace content { |
SyntheticPointerActionParams::SyntheticPointerActionParams() |
- : pointer_action_type_(PointerActionType::NOT_INITIALIZED), index_(-1) {} |
+ : gesture_source_type_(SyntheticGestureParams::DEFAULT_INPUT), |
+ pointer_action_type_(PointerActionType::NOT_INITIALIZED), |
+ index_(-1) {} |
SyntheticPointerActionParams::SyntheticPointerActionParams( |
- PointerActionType type) |
- : pointer_action_type_(type), index_(-1) {} |
- |
-SyntheticPointerActionParams::SyntheticPointerActionParams( |
- const SyntheticPointerActionParams& other) |
- : SyntheticGestureParams(other), |
- pointer_action_type_(other.pointer_action_type()) { |
- switch (other.pointer_action_type()) { |
- case PointerActionType::PRESS: |
- case PointerActionType::MOVE: |
- index_ = other.index(); |
- position_ = other.position(); |
- break; |
- case PointerActionType::RELEASE: |
- index_ = other.index(); |
- break; |
- default: |
- break; |
- } |
-} |
+ SyntheticGestureParams::GestureSourceType source_type, |
+ PointerActionType action_type) |
+ : gesture_source_type_(source_type), |
+ pointer_action_type_(action_type), |
+ index_(-1) {} |
SyntheticPointerActionParams::~SyntheticPointerActionParams() {} |
-SyntheticGestureParams::GestureType |
-SyntheticPointerActionParams::GetGestureType() const { |
- return POINTER_ACTION; |
-} |
- |
-const SyntheticPointerActionParams* SyntheticPointerActionParams::Cast( |
- const SyntheticGestureParams* gesture_params) { |
- DCHECK(gesture_params); |
- DCHECK_EQ(POINTER_ACTION, gesture_params->GetGestureType()); |
- return static_cast<const SyntheticPointerActionParams*>(gesture_params); |
-} |
- |
} // namespace content |