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

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

Issue 2178153002: Prepare SyntheticPointerAction to handle mouse actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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..905afe969eeb105c41ed3c019b22d9139fe41783 100644
--- a/content/common/input/synthetic_pointer_action_params.cc
+++ b/content/common/input/synthetic_pointer_action_params.cc
@@ -7,11 +7,11 @@
namespace content {
SyntheticPointerActionParams::SyntheticPointerActionParams()
- : pointer_action_type_(PointerActionType::NOT_INITIALIZED), index_(-1) {}
+ : pointer_action_type_(PointerActionType::NOT_INITIALIZED), index_(0) {}
SyntheticPointerActionParams::SyntheticPointerActionParams(
PointerActionType type)
- : pointer_action_type_(type), index_(-1) {}
tdresser 2016/07/26 12:27:41 Do we ever end up with -1 in the index_map_ now? I
lanwei 2016/07/28 04:47:23 In the constructor, the sourcetype is unknown. How
tdresser 2016/07/28 12:29:55 I'm not clear on what your proposal is here. If yo
+ : pointer_action_type_(type), index_(0) {}
SyntheticPointerActionParams::SyntheticPointerActionParams(
const SyntheticPointerActionParams& other)

Powered by Google App Engine
This is Rietveld 408576698