OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_POINTER_ACTION_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_ |
7 | 7 |
8 #include <array> | 8 #include <array> |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
11 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 11 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
12 #include "content/browser/renderer_host/input/synthetic_pointer.h" | 12 #include "content/browser/renderer_host/input/synthetic_pointer.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/common/input/synthetic_pointer_action_params.h" | 14 #include "content/common/input/synthetic_pointer_action_params.h" |
15 | 15 |
16 using blink::WebTouchEvent; | 16 using blink::WebTouchEvent; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class CONTENT_EXPORT SyntheticPointerAction : public SyntheticGesture { | 20 class CONTENT_EXPORT SyntheticPointerAction : public SyntheticGesture { |
21 public: | 21 public: |
22 using IndexMap = std::array<int, WebTouchEvent::touchesLengthCap>; | 22 using IndexMap = std::array<int, WebTouchEvent::kTouchesLengthCap>; |
23 | 23 |
24 SyntheticPointerAction( | 24 SyntheticPointerAction( |
25 std::unique_ptr<std::vector<SyntheticPointerActionParams>> param_list, | 25 std::unique_ptr<std::vector<SyntheticPointerActionParams>> param_list, |
26 SyntheticPointer* synthetic_pointer, | 26 SyntheticPointer* synthetic_pointer, |
27 IndexMap* index_map); | 27 IndexMap* index_map); |
28 ~SyntheticPointerAction() override; | 28 ~SyntheticPointerAction() override; |
29 | 29 |
30 SyntheticGesture::Result ForwardInputEvents( | 30 SyntheticGesture::Result ForwardInputEvents( |
31 const base::TimeTicks& timestamp, | 31 const base::TimeTicks& timestamp, |
32 SyntheticGestureTarget* target) override; | 32 SyntheticGestureTarget* target) override; |
(...skipping 25 matching lines...) Expand all Loading... |
58 IndexMap* index_map_; | 58 IndexMap* index_map_; |
59 | 59 |
60 SyntheticPointerActionParams params_; | 60 SyntheticPointerActionParams params_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(SyntheticPointerAction); | 62 DISALLOW_COPY_AND_ASSIGN(SyntheticPointerAction); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace content | 65 } // namespace content |
66 | 66 |
67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_ | 67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_POINTER_ACTION_H_ |
OLD | NEW |