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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void SendGestureScrollEnd(RenderWidgetHostViewBase* view, | 138 void SendGestureScrollEnd(RenderWidgetHostViewBase* view, |
139 const blink::WebGestureEvent& event); | 139 const blink::WebGestureEvent& event); |
140 | 140 |
141 SurfaceClientIdOwnerMap owner_map_; | 141 SurfaceClientIdOwnerMap owner_map_; |
142 TargetQueue touchscreen_gesture_target_queue_; | 142 TargetQueue touchscreen_gesture_target_queue_; |
143 TargetData touch_target_; | 143 TargetData touch_target_; |
144 TargetData touchscreen_gesture_target_; | 144 TargetData touchscreen_gesture_target_; |
145 TargetData touchpad_gesture_target_; | 145 TargetData touchpad_gesture_target_; |
146 TargetData bubbling_gesture_scroll_target_; | 146 TargetData bubbling_gesture_scroll_target_; |
147 TargetData first_bubbling_scroll_target_; | 147 TargetData first_bubbling_scroll_target_; |
| 148 // Maintains the same target between mouse down and mouse up. |
| 149 TargetData mouse_capture_target_; |
148 | 150 |
149 // Tracked for the purpose of generating MouseEnter and MouseLeave events. | 151 // Tracked for the purpose of generating MouseEnter and MouseLeave events. |
150 RenderWidgetHostViewBase* last_mouse_move_target_; | 152 RenderWidgetHostViewBase* last_mouse_move_target_; |
151 RenderWidgetHostViewBase* last_mouse_move_root_view_; | 153 RenderWidgetHostViewBase* last_mouse_move_root_view_; |
152 | 154 |
153 int active_touches_; | 155 int active_touches_; |
154 // Keep track of when we are between GesturePinchBegin and GesturePinchEnd | 156 // Keep track of when we are between GesturePinchBegin and GesturePinchEnd |
155 // inclusive, as we need to route these events (and anything in between) to | 157 // inclusive, as we need to route these events (and anything in between) to |
156 // the main frame. | 158 // the main frame. |
157 bool in_touchscreen_gesture_pinch_; | 159 bool in_touchscreen_gesture_pinch_; |
158 bool gesture_pinch_did_send_scroll_begin_; | 160 bool gesture_pinch_did_send_scroll_begin_; |
159 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> | 161 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> |
160 hittest_data_; | 162 hittest_data_; |
161 | 163 |
162 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 164 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); |
163 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 165 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
164 InputEventRouterGestureTargetQueueTest); | 166 InputEventRouterGestureTargetQueueTest); |
165 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 167 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
166 InputEventRouterTouchpadGestureTargetTest); | 168 InputEventRouterTouchpadGestureTargetTest); |
167 }; | 169 }; |
168 | 170 |
169 } // namespace content | 171 } // namespace content |
170 | 172 |
171 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ | 173 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ |
OLD | NEW |