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

Unified Diff: content/browser/renderer_host/input/synthetic_pointer_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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/synthetic_pointer_driver.h
diff --git a/content/browser/renderer_host/input/synthetic_pointer.h b/content/browser/renderer_host/input/synthetic_pointer_driver.h
similarity index 74%
rename from content/browser/renderer_host/input/synthetic_pointer.h
rename to content/browser/renderer_host/input/synthetic_pointer_driver.h
index bdd1e8216c1c814e92213513478761e975624ca7..f3b561fd8710931c1365649b305f00e85cf73c4e 100644
--- a/content/browser/renderer_host/input/synthetic_pointer.h
+++ b/content/browser/renderer_host/input/synthetic_pointer_driver.h
@@ -2,8 +2,8 @@
// 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_H_
-#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_DRIVER_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_DRIVER_H_
#include <memory>
@@ -16,18 +16,19 @@ namespace content {
class SyntheticGestureTarget;
-class CONTENT_EXPORT SyntheticPointer {
+class CONTENT_EXPORT SyntheticPointerDriver {
public:
- SyntheticPointer();
- virtual ~SyntheticPointer();
+ SyntheticPointerDriver();
+ virtual ~SyntheticPointerDriver();
- static std::unique_ptr<SyntheticPointer> Create(
+ static std::unique_ptr<SyntheticPointerDriver> Create(
SyntheticGestureParams::GestureSourceType gesture_source_type);
virtual void DispatchEvent(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) = 0;
- virtual int Press(float x,
+ virtual int Press(int index,
tdresser 2016/11/07 17:44:11 Why do we need to pass index now? If we do, why d
lanwei 2016/11/07 23:28:48 I added the index because we keep index_map_ in Sy
+ float x,
float y,
SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) = 0;
@@ -42,13 +43,15 @@ class CONTENT_EXPORT SyntheticPointer {
virtual SyntheticGestureParams::GestureSourceType SourceType() const = 0;
+ virtual int GetPointIndex(int index) const = 0;
+
protected:
static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp);
private:
- DISALLOW_COPY_AND_ASSIGN(SyntheticPointer);
+ DISALLOW_COPY_AND_ASSIGN(SyntheticPointerDriver);
};
} // namespace content
-#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_H_
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_DRIVER_H_

Powered by Google App Engine
This is Rietveld 408576698