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

Side by Side Diff: content/browser/renderer_host/input/synthetic_touch_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCH_DRIVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCH_DRIVER_H_
7
8 #include <array>
9 #include "base/macros.h"
10 #include "content/browser/renderer_host/input/synthetic_pointer_driver.h"
11 #include "content/common/content_export.h"
12 #include "content/common/input/synthetic_web_input_event_builders.h"
13
14 namespace content {
15
16 class CONTENT_EXPORT SyntheticTouchDriver : public SyntheticPointerDriver {
17 public:
18 SyntheticTouchDriver();
19 explicit SyntheticTouchDriver(SyntheticWebTouchEvent touch_event);
20 ~SyntheticTouchDriver() override;
21
22 void DispatchEvent(SyntheticGestureTarget* target,
23 const base::TimeTicks& timestamp) override;
24
25 int Press(float x, float y) override;
26 void Move(float x, float y, int index) override;
27 void Release(int index) override;
28
29 bool UserInputCheck(
30 const SyntheticPointerActionParams& params) const override;
31
32 private:
33 SyntheticWebTouchEvent touch_event_;
tdresser 2016/11/10 14:58:32 I'm a bit worried that the implementation of Synth
lanwei 2016/11/10 19:45:22 It works fine, I added a test.
34 DISALLOW_COPY_AND_ASSIGN(SyntheticTouchDriver);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_TOUCH_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698