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_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 SurfaceIdNamespaceOwnerMap owner_map_; | 114 SurfaceIdNamespaceOwnerMap owner_map_; |
115 GestureTargetQueue gesture_target_queue_; | 115 GestureTargetQueue gesture_target_queue_; |
116 RenderWidgetHostViewBase* touch_target_; | 116 RenderWidgetHostViewBase* touch_target_; |
117 RenderWidgetHostViewBase* gesture_target_; | 117 RenderWidgetHostViewBase* gesture_target_; |
118 gfx::Vector2d touch_delta_; | 118 gfx::Vector2d touch_delta_; |
119 gfx::Vector2d gesture_delta_; | 119 gfx::Vector2d gesture_delta_; |
120 int active_touches_; | 120 int active_touches_; |
121 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> | 121 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> |
122 hittest_data_; | 122 hittest_data_; |
123 | 123 |
124 // Debugging data for https://crbug.com/592319. | |
125 // Data types declared here to simplify later removal, and understanding of | |
126 // the code while it's in this intermediate state. | |
127 static const unsigned kNumLastEventTypes = 5; | |
128 struct GestureQueueDebugData { | |
129 unsigned long number_of_gesture_targets_enqueued; | |
130 unsigned long number_of_gesture_targets_dequeued; | |
131 int last_gesture_event_types[kNumLastEventTypes]; | |
132 int last_touch_event_types[kNumLastEventTypes]; | |
133 unsigned next_gesture_event_index; | |
134 unsigned next_touch_event_index; | |
135 | |
136 GestureQueueDebugData(); | |
137 }; | |
138 GestureQueueDebugData debug_data_; | |
139 | |
140 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); |
141 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 125 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
142 InputEventRouterGestureTargetQueueTest); | 126 InputEventRouterGestureTargetQueueTest); |
143 }; | 127 }; |
144 | 128 |
145 } // namespace content | 129 } // namespace content |
146 | 130 |
147 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ | 131 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ |
OLD | NEW |