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

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

Issue 1349813002: Enable pinch-zoom telemetry on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@telemetry
Patch Set: feedback Created 5 years, 3 months 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_touchscreen_pinch_gesture.h
diff --git a/content/browser/renderer_host/input/synthetic_pinch_gesture.h b/content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.h
similarity index 74%
copy from content/browser/renderer_host/input/synthetic_pinch_gesture.h
copy to content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.h
index 71e79ec6b2b82972b944ded99ba07773b4aecdfb..a549db0caad00b9f396319e3b5bb860e927981bd 100644
--- a/content/browser/renderer_host/input/synthetic_pinch_gesture.h
+++ b/content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.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_PINCH_GESTURE_H_
-#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTURE_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTURE_H_
#include "base/time/time.h"
#include "content/browser/renderer_host/input/synthetic_gesture.h"
@@ -15,22 +15,19 @@
namespace content {
-class CONTENT_EXPORT SyntheticPinchGesture : public SyntheticGesture {
+class CONTENT_EXPORT SyntheticTouchscreenPinchGesture
+ : public SyntheticGesture {
public:
- explicit SyntheticPinchGesture(const SyntheticPinchGestureParams& params);
- ~SyntheticPinchGesture() override;
+ explicit SyntheticTouchscreenPinchGesture(
+ const SyntheticPinchGestureParams& params);
+ ~SyntheticTouchscreenPinchGesture() override;
SyntheticGesture::Result ForwardInputEvents(
const base::TimeTicks& timestamp,
SyntheticGestureTarget* target) override;
private:
- enum GestureState {
- SETUP,
- STARTED,
- MOVING,
- DONE
- };
+ enum GestureState { SETUP, STARTED, MOVING, DONE };
void ForwardTouchInputEvents(const base::TimeTicks& timestamp,
SyntheticGestureTarget* target);
@@ -38,7 +35,8 @@ class CONTENT_EXPORT SyntheticPinchGesture : public SyntheticGesture {
void UpdateTouchPoints(const base::TimeTicks& timestamp);
void PressTouchPoints(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp);
- void MoveTouchPoints(SyntheticGestureTarget* target, float delta,
+ void MoveTouchPoints(SyntheticGestureTarget* target,
+ float delta,
const base::TimeTicks& timestamp);
void ReleaseTouchPoints(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp);
@@ -61,9 +59,9 @@ class CONTENT_EXPORT SyntheticPinchGesture : public SyntheticGesture {
base::TimeTicks stop_time_;
private:
- DISALLOW_COPY_AND_ASSIGN(SyntheticPinchGesture);
+ DISALLOW_COPY_AND_ASSIGN(SyntheticTouchscreenPinchGesture);
};
} // namespace content
-#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTURE_H_

Powered by Google App Engine
This is Rietveld 408576698