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

Side by Side Diff: content/browser/renderer_host/input/synthetic_mouse_driver.h

Issue 2478423002: Rename SyntheticPointer to SyntheticPointerDriver (Closed)
Patch Set: rename Created 4 years, 1 month 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_POINTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_POINTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/renderer_host/input/synthetic_pointer.h" 9 #include "content/browser/renderer_host/input/synthetic_pointer_driver.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/input/synthetic_web_input_event_builders.h" 11 #include "content/common/input/synthetic_web_input_event_builders.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class CONTENT_EXPORT SyntheticMousePointer : public SyntheticPointer { 15 class CONTENT_EXPORT SyntheticMouseDriver : public SyntheticPointerDriver {
16 public: 16 public:
17 SyntheticMousePointer(); 17 SyntheticMouseDriver();
18 ~SyntheticMousePointer() override; 18 ~SyntheticMouseDriver() override;
19 19
20 void DispatchEvent(SyntheticGestureTarget* target, 20 void DispatchEvent(SyntheticGestureTarget* target,
21 const base::TimeTicks& timestamp) override; 21 const base::TimeTicks& timestamp) override;
22 22
23 int Press(float x, 23 int Press(int index,
24 float x,
24 float y, 25 float y,
25 SyntheticGestureTarget* target, 26 SyntheticGestureTarget* target,
26 const base::TimeTicks& timestamp) override; 27 const base::TimeTicks& timestamp) override;
27 void Move(int index, 28 void Move(int index,
28 float x, 29 float x,
29 float y, 30 float y,
30 SyntheticGestureTarget* target, 31 SyntheticGestureTarget* target,
31 const base::TimeTicks& timestamp) override; 32 const base::TimeTicks& timestamp) override;
32 void Release(int index, 33 void Release(int index,
33 SyntheticGestureTarget* target, 34 SyntheticGestureTarget* target,
34 const base::TimeTicks& timestamp) override; 35 const base::TimeTicks& timestamp) override;
35 36
36 SyntheticGestureParams::GestureSourceType SourceType() const override; 37 SyntheticGestureParams::GestureSourceType SourceType() const override;
37 38
39 int GetPointIndex(int index) const override;
40
38 private: 41 private:
39 blink::WebMouseEvent mouse_event_; 42 blink::WebMouseEvent mouse_event_;
40 DISALLOW_COPY_AND_ASSIGN(SyntheticMousePointer); 43 int mouse_index_;
44 DISALLOW_COPY_AND_ASSIGN(SyntheticMouseDriver);
41 }; 45 };
42 46
43 } // namespace content 47 } // namespace content
44 48
45 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_POINTER_H_ 49 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698