OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TOUCH_EVENT_QUEUE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TOUCH_EVENT_QUEUE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCH_EVENT_QUEUE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCH_EVENT_QUEUE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/port/common/input_event_ack_state.h" | 13 #include "content/public/common/input_event_ack_state.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class CoalescedWebTouchEvent; | 18 class CoalescedWebTouchEvent; |
19 class MockRenderWidgetHost; | 19 class MockRenderWidgetHost; |
20 class RenderWidgetHostImpl; | 20 class RenderWidgetHostImpl; |
21 | 21 |
22 // A queue for throttling and coalescing touch-events. | 22 // A queue for throttling and coalescing touch-events. |
23 class TouchEventQueue { | 23 class TouchEventQueue { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Maintain the ACK status for each touch point. | 70 // Maintain the ACK status for each touch point. |
71 typedef std::map<int, InputEventAckState> TouchPointAckStates; | 71 typedef std::map<int, InputEventAckState> TouchPointAckStates; |
72 TouchPointAckStates touch_ack_states_; | 72 TouchPointAckStates touch_ack_states_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); | 74 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_BROWSER_RENDERER_HOST_TOUCH_EVENT_QUEUE_H_ | 79 #endif // CONTENT_BROWSER_RENDERER_HOST_TOUCH_EVENT_QUEUE_H_ |
OLD | NEW |