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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 void SendGestureScrollEnd(RenderWidgetHostViewBase* view, | 157 void SendGestureScrollEnd(RenderWidgetHostViewBase* view, |
158 const blink::WebGestureEvent& event); | 158 const blink::WebGestureEvent& event); |
159 | 159 |
160 FrameSinkIdOwnerMap owner_map_; | 160 FrameSinkIdOwnerMap owner_map_; |
161 TargetQueue touchscreen_gesture_target_queue_; | 161 TargetQueue touchscreen_gesture_target_queue_; |
162 TargetData touch_target_; | 162 TargetData touch_target_; |
163 TargetData touchscreen_gesture_target_; | 163 TargetData touchscreen_gesture_target_; |
164 TargetData touchpad_gesture_target_; | 164 TargetData touchpad_gesture_target_; |
165 TargetData bubbling_gesture_scroll_target_; | 165 TargetData bubbling_gesture_scroll_target_; |
166 TargetData first_bubbling_scroll_target_; | 166 TargetData first_bubbling_scroll_target_; |
167 // Used to target wheel events for the duration of a scroll when wheel scroll | |
168 // latching is enabled. | |
169 TargetData wheel_target_; | |
170 // Maintains the same target between mouse down and mouse up. | 167 // Maintains the same target between mouse down and mouse up. |
171 TargetData mouse_capture_target_; | 168 TargetData mouse_capture_target_; |
172 | 169 |
173 // Tracked for the purpose of generating MouseEnter and MouseLeave events. | 170 // Tracked for the purpose of generating MouseEnter and MouseLeave events. |
174 RenderWidgetHostViewBase* last_mouse_move_target_; | 171 RenderWidgetHostViewBase* last_mouse_move_target_; |
175 RenderWidgetHostViewBase* last_mouse_move_root_view_; | 172 RenderWidgetHostViewBase* last_mouse_move_root_view_; |
176 | 173 |
177 int active_touches_; | 174 int active_touches_; |
178 // Keep track of when we are between GesturePinchBegin and GesturePinchEnd | 175 // Keep track of when we are between GesturePinchBegin and GesturePinchEnd |
179 // inclusive, as we need to route these events (and anything in between) to | 176 // inclusive, as we need to route these events (and anything in between) to |
180 // the main frame. | 177 // the main frame. |
181 bool in_touchscreen_gesture_pinch_; | 178 bool in_touchscreen_gesture_pinch_; |
182 bool gesture_pinch_did_send_scroll_begin_; | 179 bool gesture_pinch_did_send_scroll_begin_; |
183 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> | 180 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> |
184 hittest_data_; | 181 hittest_data_; |
185 | 182 |
186 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 183 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); |
187 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 184 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
188 InputEventRouterGestureTargetQueueTest); | 185 InputEventRouterGestureTargetQueueTest); |
189 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 186 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
190 InputEventRouterTouchpadGestureTargetTest); | 187 InputEventRouterTouchpadGestureTargetTest); |
191 }; | 188 }; |
192 | 189 |
193 } // namespace content | 190 } // namespace content |
194 | 191 |
195 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ | 192 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ |
OLD | NEW |