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 |
index fe6c9f9b4a301b8a240fd1952ddc9893bc7efc53..3eaea2ada64e537b354be7e3f54d5aa9fe8fff06 100644 |
--- a/content/common/input/synthetic_pointer_action_params.h |
+++ b/content/common/input/synthetic_pointer_action_params.h |
@@ -23,13 +23,15 @@ struct CONTENT_EXPORT SyntheticPointerActionParams |
public: |
// Actions are queued up until we receive a PROCESS action, at which point |
// we'll dispatch all queued events. |
+ // TODO(lanwei): Will add a 'CANCEL' action. |
enum class PointerActionType { |
NOT_INITIALIZED, |
PRESS, |
MOVE, |
RELEASE, |
PROCESS, |
- POINTER_ACTION_TYPE_MAX = PROCESS |
+ FINISH, |
+ POINTER_ACTION_TYPE_MAX = FINISH |
}; |
SyntheticPointerActionParams(); |
@@ -47,7 +49,8 @@ struct CONTENT_EXPORT SyntheticPointerActionParams |
} |
void set_index(int index) { |
- DCHECK(pointer_action_type_ != PointerActionType::PROCESS); |
+ DCHECK(pointer_action_type_ != PointerActionType::PROCESS && |
+ pointer_action_type_ != PointerActionType::FINISH); |
index_ = index; |
} |
@@ -60,7 +63,8 @@ struct CONTENT_EXPORT SyntheticPointerActionParams |
PointerActionType pointer_action_type() const { return pointer_action_type_; } |
int index() const { |
- DCHECK(pointer_action_type_ != PointerActionType::PROCESS); |
+ DCHECK(pointer_action_type_ != PointerActionType::PROCESS && |
+ pointer_action_type_ != PointerActionType::FINISH); |
return index_; |
} |