Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: content/common/input/synthetic_pointer_action_params.h

Issue 1884883005: Prepare SyntheticPointerAction to handle touch actions for multiple fingers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: return nullptr Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..641787c379ebdecf6e2432eba8e9ad6171ac9183 100644
--- a/content/common/input/synthetic_pointer_action_params.h
+++ b/content/common/input/synthetic_pointer_action_params.h
@@ -22,14 +22,16 @@ struct CONTENT_EXPORT SyntheticPointerActionParams
: public SyntheticGestureParams {
public:
// Actions are queued up until we receive a PROCESS action, at which point
- // we'll dispatch all queued events.
+ // we'll dispatch all queued events. A FINISH action will be received when
+ // we reach the end of the action sequence.
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_;
}
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698