Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: content/browser/renderer_host/render_widget_host_input_event_router.h

Issue 2186983002: Re-route Touchscreen GesturePinch events to root view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 int active_touches_; 139 int active_touches_;
140 // Keep track of when we are between GesturePinchBegin and GesturePinchEnd
141 // inclusive, as we need to route these events (and anything in between) to
142 // the main frame.
143 bool in_touchscreen_gesture_pinch_;
144 bool gesture_pinch_did_send_scroll_begin_;
140 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> 145 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash>
141 hittest_data_; 146 hittest_data_;
142 147
143 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); 148 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter);
144 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, 149 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest,
145 InputEventRouterGestureTargetQueueTest); 150 InputEventRouterGestureTargetQueueTest);
146 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, 151 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest,
147 InputEventRouterTouchpadGestureTargetTest); 152 InputEventRouterTouchpadGestureTargetTest);
148 }; 153 };
149 154
150 } // namespace content 155 } // namespace content
151 156
152 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _ 157 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698