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 unsigned long number_of_gesture_targets_enqueued_; | |
126 unsigned long number_of_gesture_targets_dequeued_; | |
127 static const unsigned kNumLastEventTypes = 5; | |
128 int last_gesture_event_types_[kNumLastEventTypes]; | |
129 int last_touch_event_types_[kNumLastEventTypes]; | |
130 unsigned last_gesture_event_index_; | |
131 unsigned last_touch_event_index_; | |
tdresser
2016/03/09 19:53:45
Would the dump still be easily legible if you dump
wjmaclean
2016/03/09 21:28:31
Done.
| |
132 | |
124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 133 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); |
125 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 134 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
126 InputEventRouterGestureTargetQueueTest); | 135 InputEventRouterGestureTargetQueueTest); |
127 }; | 136 }; |
128 | 137 |
129 } // namespace content | 138 } // namespace content |
130 | 139 |
131 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _ | 140 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _ |
OLD | NEW |