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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture.h

Issue 62443007: Replace old with new synthetic gesture framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declare SyntheticGestureController. Created 7 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_gesture.h
diff --git a/content/browser/renderer_host/input/synthetic_gesture_new.h b/content/browser/renderer_host/input/synthetic_gesture.h
similarity index 90%
rename from content/browser/renderer_host/input/synthetic_gesture_new.h
rename to content/browser/renderer_host/input/synthetic_gesture.h
index 4e368c81202dc51fed7306c830c3474c52f372a9..c10c2fea2140dc39b9cfd23a231b7821b46e55c4 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_new.h
+++ b/content/browser/renderer_host/input/synthetic_gesture.h
@@ -26,12 +26,12 @@ class SyntheticGestureTarget;
// mouse, etc) to SyntheticGestureController unit tests. The unit tests
// only checks basic functionality and termination. If the gesture is
// hooked up to Telemetry its correctness can additionally be tested there.
-class CONTENT_EXPORT SyntheticGestureNew {
+class CONTENT_EXPORT SyntheticGesture {
public:
- SyntheticGestureNew();
- virtual ~SyntheticGestureNew();
+ SyntheticGesture();
+ virtual ~SyntheticGesture();
- static scoped_ptr<SyntheticGestureNew> Create(
+ static scoped_ptr<SyntheticGesture> Create(
const SyntheticGestureParams& gesture_params);
enum Result {
@@ -41,6 +41,7 @@ class CONTENT_EXPORT SyntheticGestureNew {
GESTURE_SOURCE_TYPE_NOT_SUPPORTED_BY_PLATFORM,
GESTURE_RESULT_MAX = GESTURE_SOURCE_TYPE_NOT_SUPPORTED_BY_PLATFORM
};
+
// Update the state of the gesture and forward the appropriate events to the
// platform. This function is called repeatedly by the synthetic gesture
// controller until it stops returning GESTURE_RUNNING.
@@ -48,7 +49,7 @@ class CONTENT_EXPORT SyntheticGestureNew {
const base::TimeDelta& interval, SyntheticGestureTarget* target) = 0;
private:
- DISALLOW_COPY_AND_ASSIGN(SyntheticGestureNew);
+ DISALLOW_COPY_AND_ASSIGN(SyntheticGesture);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698