OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MOTION_EVENT_WEB_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "third_party/WebKit/public/web/WebInputEvent.h" | 13 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
14 #include "ui/events/gesture_detection/motion_event.h" | 14 #include "ui/events/gesture_detection/motion_event.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 // Implementation of ui::MotionEvent wrapping a WebTouchEvent. | 18 // Implementation of ui::MotionEvent wrapping a WebTouchEvent. |
19 class CONTENT_EXPORT MotionEventWeb : public ui::MotionEvent { | 19 class CONTENT_EXPORT MotionEventWeb : public ui::MotionEvent { |
20 public: | 20 public: |
21 explicit MotionEventWeb(const blink::WebTouchEvent& event); | 21 explicit MotionEventWeb(const blink::WebTouchEvent& event); |
22 ~MotionEventWeb() override; | 22 ~MotionEventWeb() override; |
23 | 23 |
(...skipping 22 matching lines...) Expand all Loading... |
46 Action cached_action_; | 46 Action cached_action_; |
47 int cached_action_index_; | 47 int cached_action_index_; |
48 const uint32_t unique_event_id_; | 48 const uint32_t unique_event_id_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); | 50 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace content | 53 } // namespace content |
54 | 54 |
55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ | 55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ |
OLD | NEW |