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

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

Issue 1707943002: Add SyntheticPointerActionParams used in Chromedriver extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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_params.h"
6
7 #include "base/logging.h"
8
9 namespace content {
10
11 // Set the default tap duration to 50ms to lie within the bounds of the Aura
12 // gesture recognizer for identifying clicks (currently 0.01s-0.80s).
tdresser 2016/02/29 15:06:56 Is isn't clear what code this comment is referring
lanwei 2016/03/07 05:41:58 Done.
13 SyntheticPointerActionParams::SyntheticPointerActionParams() {}
14
15 SyntheticPointerActionParams::SyntheticPointerActionParams(
16 const SyntheticPointerActionParams& other)
17 : SyntheticGestureParams(other),
18 index(other.index),
19 position(other.position),
20 pointer_action_type(other.pointer_action_type),
21 process(other.process) {}
22
23 SyntheticPointerActionParams::~SyntheticPointerActionParams() {}
24
25 SyntheticGestureParams::GestureType
26 SyntheticPointerActionParams::GetGestureType() const {
27 return POINTER_ACTION;
28 }
29
30 const SyntheticPointerActionParams* SyntheticPointerActionParams::Cast(
31 const SyntheticGestureParams* gesture_params) {
32 DCHECK(gesture_params);
33 DCHECK_EQ(POINTER_ACTION, gesture_params->GetGestureType());
34 return static_cast<const SyntheticPointerActionParams*>(gesture_params);
35 }
36
37 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698