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

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

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 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_POINTER_ACTION_PARAMS_H_
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_POINTER_ACTION_PARAMS_H_
7
8 #include "content/common/content_export.h"
9 #include "content/common/input/synthetic_gesture_params.h"
10 #include "ui/gfx/geometry/point_f.h"
11
12 namespace content {
13
14 struct CONTENT_EXPORT SyntheticPointerActionParams
15 : public SyntheticGestureParams {
16 public:
17 SyntheticPointerActionParams();
18 SyntheticPointerActionParams(const SyntheticPointerActionParams& other);
19 ~SyntheticPointerActionParams() override;
20
21 GestureType GetGestureType() const override;
22
23 gfx::PointF position;
24 int index;
25 float duration_ms;
samuong 2016/02/17 22:15:48 I'm not sure if duration is necessary here. We sho
tdresser 2016/02/18 14:46:34 This is required to implement the delay(float) (ht
lanwei 2016/02/26 18:39:26 I think we do not need to pass this information to
26 PointerActionType pointer_action_type;
27
28 static const SyntheticPointerActionParams* Cast(
29 const SyntheticGestureParams* gesture_params);
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_POINTER_ACTION_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698