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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/common/input/synthetic_gesture_params.h" | 11 #include "content/common/input/synthetic_gesture_params.h" |
12 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 class SyntheticGestureTarget; | 15 class SyntheticGestureTarget; |
17 | 16 |
18 // Base class for synthetic gesture implementations. A synthetic gesture class | 17 // Base class for synthetic gesture implementations. A synthetic gesture class |
19 // is responsible for forwaring InputEvents, simulating the gesture, to a | 18 // is responsible for forwaring InputEvents, simulating the gesture, to a |
20 // SyntheticGestureTarget. | 19 // SyntheticGestureTarget. |
21 // | 20 // |
22 // Adding new gesture types involved the following steps: | 21 // Adding new gesture types involved the following steps: |
(...skipping 27 matching lines...) Expand all Loading... |
50 | 49 |
51 protected: | 50 protected: |
52 static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp); | 51 static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp); |
53 | 52 |
54 DISALLOW_COPY_AND_ASSIGN(SyntheticGesture); | 53 DISALLOW_COPY_AND_ASSIGN(SyntheticGesture); |
55 }; | 54 }; |
56 | 55 |
57 } // namespace content | 56 } // namespace content |
58 | 57 |
59 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ | 58 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_H_ |
OLD | NEW |