| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void SendGestureScrollEnd(RenderWidgetHostViewBase* view, | 129 void SendGestureScrollEnd(RenderWidgetHostViewBase* view, |
| 130 const blink::WebGestureEvent& event); | 130 const blink::WebGestureEvent& event); |
| 131 | 131 |
| 132 SurfaceClientIdOwnerMap owner_map_; | 132 SurfaceClientIdOwnerMap owner_map_; |
| 133 TargetQueue touchscreen_gesture_target_queue_; | 133 TargetQueue touchscreen_gesture_target_queue_; |
| 134 TargetData touch_target_; | 134 TargetData touch_target_; |
| 135 TargetData touchscreen_gesture_target_; | 135 TargetData touchscreen_gesture_target_; |
| 136 TargetData touchpad_gesture_target_; | 136 TargetData touchpad_gesture_target_; |
| 137 TargetData bubbling_gesture_scroll_target_; | 137 TargetData bubbling_gesture_scroll_target_; |
| 138 TargetData first_bubbling_scroll_target_; | 138 TargetData first_bubbling_scroll_target_; |
| 139 // Maintains the same target between mouse down and mouse up. |
| 140 TargetData mouse_capture_target_; |
| 139 int active_touches_; | 141 int active_touches_; |
| 140 // Keep track of when we are between GesturePinchBegin and GesturePinchEnd | 142 // Keep track of when we are between GesturePinchBegin and GesturePinchEnd |
| 141 // inclusive, as we need to route these events (and anything in between) to | 143 // inclusive, as we need to route these events (and anything in between) to |
| 142 // the main frame. | 144 // the main frame. |
| 143 bool in_touchscreen_gesture_pinch_; | 145 bool in_touchscreen_gesture_pinch_; |
| 144 bool gesture_pinch_did_send_scroll_begin_; | 146 bool gesture_pinch_did_send_scroll_begin_; |
| 145 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> | 147 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> |
| 146 hittest_data_; | 148 hittest_data_; |
| 147 | 149 |
| 148 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 150 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); |
| 149 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 151 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
| 150 InputEventRouterGestureTargetQueueTest); | 152 InputEventRouterGestureTargetQueueTest); |
| 151 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 153 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
| 152 InputEventRouterTouchpadGestureTargetTest); | 154 InputEventRouterTouchpadGestureTargetTest); |
| 153 }; | 155 }; |
| 154 | 156 |
| 155 } // namespace content | 157 } // namespace content |
| 156 | 158 |
| 157 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ | 159 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ |
| OLD | NEW |