blob: d1907764c8a86f1b91600fd884b0f3adb4a45c9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright 2015 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.
#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_
#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_
#include "base/macros.h"
#include "content/browser/renderer_host/input/synthetic_gesture.h"
#include "content/browser/renderer_host/input/synthetic_gesture_target.h"
#include "content/browser/renderer_host/input/synthetic_pointer.h"
#include "content/common/content_export.h"
namespace content {
class CONTENT_EXPORT SyntheticPointerAction : public SyntheticGesture {
public:
SyntheticPointerAction(
SyntheticGestureParams::GestureSourceType gesture_source_type,
PointerActionType pointer_action_type,
SyntheticPointer* synthetic_pointer,
gfx::PointF position,
int index = 0);
~SyntheticPointerAction() override;
SyntheticGesture::Result ForwardInputEvents(
const base::TimeTicks& timestamp,
SyntheticGestureTarget* target) override;
void ForwardTouchOrMouseInputEvents(const base::TimeTicks& timestamp,
SyntheticGestureTarget* target);
private:
SyntheticGestureParams::GestureSourceType gesture_source_type_;
PointerActionType pointer_action_type_;
gfx::PointF position_;
int index_;
SyntheticPointer* synthetic_pointer_;
DISALLOW_COPY_AND_ASSIGN(SyntheticPointerAction);
};
} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_
|