| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 
| 7 | 7 | 
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" | 
| 9 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 9 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 
| 10 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" | 
| 12 #include "content/common/input/synthetic_pinch_gesture_params.h" | 12 #include "content/common/input/synthetic_pinch_gesture_params.h" | 
| 13 #include "content/common/input/synthetic_web_input_event_builders.h" | 13 #include "content/common/input/synthetic_web_input_event_builders.h" | 
| 14 #include "third_party/WebKit/public/web/WebInputEvent.h" | 14 #include "third_party/WebKit/public/web/WebInputEvent.h" | 
| 15 | 15 | 
| 16 namespace content { | 16 namespace content { | 
| 17 | 17 | 
| 18 class CONTENT_EXPORT SyntheticPinchGesture : public SyntheticGesture { | 18 class CONTENT_EXPORT SyntheticPinchGesture : public SyntheticGesture { | 
| 19  public: | 19  public: | 
| 20   explicit SyntheticPinchGesture(const SyntheticPinchGestureParams& params); | 20   explicit SyntheticPinchGesture(const SyntheticPinchGestureParams& params); | 
| 21   virtual ~SyntheticPinchGesture(); | 21   virtual ~SyntheticPinchGesture(); | 
| 22 | 22 | 
| 23   virtual SyntheticGesture::Result ForwardInputEvents( | 23   virtual SyntheticGesture::Result ForwardInputEvents( | 
| 24       const base::TimeTicks& timestamp, | 24       const base::TimeTicks& timestamp, | 
| 25       SyntheticGestureTarget* target) OVERRIDE; | 25       SyntheticGestureTarget* target) override; | 
| 26 | 26 | 
| 27  private: | 27  private: | 
| 28   enum GestureState { | 28   enum GestureState { | 
| 29     SETUP, | 29     SETUP, | 
| 30     STARTED, | 30     STARTED, | 
| 31     MOVING, | 31     MOVING, | 
| 32     DONE | 32     DONE | 
| 33   }; | 33   }; | 
| 34 | 34 | 
| 35   void ForwardTouchInputEvents(const base::TimeTicks& timestamp, | 35   void ForwardTouchInputEvents(const base::TimeTicks& timestamp, | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 60   base::TimeTicks start_time_; | 60   base::TimeTicks start_time_; | 
| 61   base::TimeTicks stop_time_; | 61   base::TimeTicks stop_time_; | 
| 62 | 62 | 
| 63  private: | 63  private: | 
| 64   DISALLOW_COPY_AND_ASSIGN(SyntheticPinchGesture); | 64   DISALLOW_COPY_AND_ASSIGN(SyntheticPinchGesture); | 
| 65 }; | 65 }; | 
| 66 | 66 | 
| 67 }  // namespace content | 67 }  // namespace content | 
| 68 | 68 | 
| 69 #endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 69 #endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 
| OLD | NEW | 
|---|