| 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_GESTURE_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 void Flush(base::TimeTicks timestamp); | 32 void Flush(base::TimeTicks timestamp); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 void StartGesture(const SyntheticGesture& gesture); | 35 void StartGesture(const SyntheticGesture& gesture); |
| 36 void StopGesture(const SyntheticGesture& gesture, | 36 void StopGesture(const SyntheticGesture& gesture, |
| 37 SyntheticGesture::Result result); | 37 SyntheticGesture::Result result); |
| 38 | 38 |
| 39 scoped_ptr<SyntheticGestureTarget> gesture_target_; | 39 scoped_ptr<SyntheticGestureTarget> gesture_target_; |
| 40 ScopedVector<SyntheticGesture> pending_gesture_queue_; | 40 ScopedVector<SyntheticGesture> pending_gesture_queue_; |
| 41 | 41 |
| 42 base::TimeTicks last_tick_time_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureController); | 42 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureController); |
| 45 }; | 43 }; |
| 46 | 44 |
| 47 } // namespace content | 45 } // namespace content |
| 48 | 46 |
| 49 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ | 47 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ |
| OLD | NEW |