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

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

Issue 2336803003: Make SyntheticPointerAction to flush the pointer action sequence (Closed)
Patch Set: pointer controller Created 4 years, 2 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_list_params.cc
diff --git a/content/common/input/synthetic_pointer_action_list_params.cc b/content/common/input/synthetic_pointer_action_list_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a02e176071a9618ce488084568838e075d5c2eb0
--- /dev/null
+++ b/content/common/input/synthetic_pointer_action_list_params.cc
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/common/input/synthetic_pointer_action_list_params.h"
+
+namespace content {
+
+SyntheticPointerActionListParams::SyntheticPointerActionListParams() {}
+
+SyntheticPointerActionListParams::SyntheticPointerActionListParams(
+ SyntheticPointerActionParams param) {
+ param_list.push_back(param);
+}
+
+SyntheticPointerActionListParams::SyntheticPointerActionListParams(
+ const SyntheticPointerActionListParams& other)
Navid Zolghadr 2016/11/01 19:08:42 Don't we need to call the cctor of the parent clas
lanwei 2016/12/04 18:08:02 Acknowledged. We have to keep this copy construct
+ : param_list(other.param_list) {}
+
+SyntheticPointerActionListParams::~SyntheticPointerActionListParams() {}
+
+SyntheticGestureParams::GestureType
+SyntheticPointerActionListParams::GetGestureType() const {
+ return POINTER_ACTION_LIST;
+}
+
+const SyntheticPointerActionListParams* SyntheticPointerActionListParams::Cast(
+ const SyntheticGestureParams* gesture_params) {
+ DCHECK(gesture_params);
+ DCHECK_EQ(POINTER_ACTION_LIST, gesture_params->GetGestureType());
+ return static_cast<const SyntheticPointerActionListParams*>(gesture_params);
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698