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 |
| index 641787c379ebdecf6e2432eba8e9ad6171ac9183..aa9aef7c998c84e43780e294b6a4c897c75b34e0 100644 |
| --- a/content/common/input/synthetic_pointer_action_params.h |
| +++ b/content/common/input/synthetic_pointer_action_params.h |
| @@ -51,6 +51,8 @@ struct CONTENT_EXPORT SyntheticPointerActionParams |
| void set_index(int index) { |
|
tdresser
2016/08/04 13:46:01
Maybe add a comment that the only valid index for
lanwei
2016/09/23 15:13:42
Done.
|
| DCHECK(pointer_action_type_ != PointerActionType::PROCESS && |
| pointer_action_type_ != PointerActionType::FINISH); |
| + DCHECK(gesture_source_type != MOUSE_INPUT || |
| + index == 0); |
| index_ = index; |
| } |
| @@ -65,6 +67,8 @@ struct CONTENT_EXPORT SyntheticPointerActionParams |
| int index() const { |
| DCHECK(pointer_action_type_ != PointerActionType::PROCESS && |
| pointer_action_type_ != PointerActionType::FINISH); |
| + DCHECK(gesture_source_type != MOUSE_INPUT || |
| + index_ == 0); |
| return index_; |
| } |