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

Side by Side Diff: content/common/input/synthetic_pointer_action_list_params.cc

Issue 2336803003: Make SyntheticPointerAction to flush the pointer action sequence (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/common/input/synthetic_pointer_action_list_params.h"
6
7 namespace content {
8
9 SyntheticPointerActionListParams::SyntheticPointerActionListParams() {}
10
11 SyntheticPointerActionListParams::SyntheticPointerActionListParams(
12 SyntheticPointerActionParams param) {
13 param_list.push_back(param);
14 }
15
16 SyntheticPointerActionListParams::SyntheticPointerActionListParams(
17 std::vector<SyntheticPointerActionParams>& param_list)
18 : param_list(param_list) {}
19
20 SyntheticPointerActionListParams::SyntheticPointerActionListParams(
21 const SyntheticPointerActionListParams& other)
22 : param_list(other.param_list) {}
23
24 SyntheticPointerActionListParams::~SyntheticPointerActionListParams() {}
25
26 SyntheticGestureParams::GestureType
27 SyntheticPointerActionListParams::GetGestureType() const {
28 return POINTER_ACTION_LIST;
29 }
30
31 const SyntheticPointerActionListParams* SyntheticPointerActionListParams::Cast(
32 const SyntheticGestureParams* gesture_params) {
33 DCHECK(gesture_params);
34 DCHECK_EQ(POINTER_ACTION_LIST, gesture_params->GetGestureType());
35 return static_cast<const SyntheticPointerActionListParams*>(gesture_params);
36 }
37
38 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698