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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/synthetic_mouse_driver.h
diff --git a/content/browser/renderer_host/input/synthetic_mouse_pointer.h b/content/browser/renderer_host/input/synthetic_mouse_driver.h
similarity index 63%
rename from content/browser/renderer_host/input/synthetic_mouse_pointer.h
rename to content/browser/renderer_host/input/synthetic_mouse_driver.h
index fcd396123dfbd32f7b1e8cb6036ad0db54ba145c..3f9e3534a6849ff6c4ed927b274d51fdbfb6f470 100644
--- a/content/browser/renderer_host/input/synthetic_mouse_pointer.h
+++ b/content/browser/renderer_host/input/synthetic_mouse_driver.h
@@ -2,25 +2,26 @@
// 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_MOUSE_POINTER_H_
-#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_POINTER_H_
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_
#include "base/macros.h"
-#include "content/browser/renderer_host/input/synthetic_pointer.h"
+#include "content/browser/renderer_host/input/synthetic_pointer_driver.h"
#include "content/common/content_export.h"
#include "content/common/input/synthetic_web_input_event_builders.h"
namespace content {
-class CONTENT_EXPORT SyntheticMousePointer : public SyntheticPointer {
+class CONTENT_EXPORT SyntheticMouseDriver : public SyntheticPointerDriver {
public:
- SyntheticMousePointer();
- ~SyntheticMousePointer() override;
+ SyntheticMouseDriver();
+ ~SyntheticMouseDriver() override;
void DispatchEvent(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) override;
- int Press(float x,
+ int Press(int index,
+ float x,
float y,
SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) override;
@@ -35,11 +36,14 @@ class CONTENT_EXPORT SyntheticMousePointer : public SyntheticPointer {
SyntheticGestureParams::GestureSourceType SourceType() const override;
+ int GetPointIndex(int index) const override;
+
private:
blink::WebMouseEvent mouse_event_;
- DISALLOW_COPY_AND_ASSIGN(SyntheticMousePointer);
+ int mouse_index_;
+ DISALLOW_COPY_AND_ASSIGN(SyntheticMouseDriver);
};
} // namespace content
-#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_POINTER_H_
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_

Powered by Google App Engine
This is Rietveld 408576698