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

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

Issue 2478423002: Rename SyntheticPointer to SyntheticPointerDriver (Closed)
Patch Set: rename Created 4 years, 1 month 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/synthetic_pointer_action_params.h ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('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.cc
diff --git a/content/common/input/synthetic_pointer_action_params.cc b/content/common/input/synthetic_pointer_action_params.cc
index 593413b9822e8a52668cce5488c953ec302c8854..5ed7c700b90743fc7b90fc56909c203e5d2dd12e 100644
--- a/content/common/input/synthetic_pointer_action_params.cc
+++ b/content/common/input/synthetic_pointer_action_params.cc
@@ -7,11 +7,17 @@
namespace content {
SyntheticPointerActionParams::SyntheticPointerActionParams()
- : pointer_action_type_(PointerActionType::NOT_INITIALIZED), index_(-1) {}
+ : pointer_action_type_(PointerActionType::NOT_INITIALIZED) {
+ index_ = gesture_source_type != MOUSE_INPUT ? -1 : 0;
+}
SyntheticPointerActionParams::SyntheticPointerActionParams(
- PointerActionType type)
- : pointer_action_type_(type), index_(-1) {}
+ PointerActionType action_type,
+ GestureSourceType source_type)
+ : pointer_action_type_(action_type) {
+ gesture_source_type = source_type;
+ index_ = gesture_source_type != MOUSE_INPUT ? -1 : 0;
+}
SyntheticPointerActionParams::SyntheticPointerActionParams(
const SyntheticPointerActionParams& other)
@@ -24,9 +30,11 @@ SyntheticPointerActionParams::SyntheticPointerActionParams(
position_ = other.position();
break;
case PointerActionType::RELEASE:
+ case PointerActionType::IDLE:
+ case PointerActionType::NOT_INITIALIZED:
index_ = other.index();
break;
- default:
+ case PointerActionType::FINISH:
break;
}
}
« no previous file with comments | « content/common/input/synthetic_pointer_action_params.h ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698