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

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

Issue 2785533003: Animated scroll shouldn't consume unhandled scrolls for OOPIFs. (Closed)
Patch Set: Fix Android compile. Created 3 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 // Notifies the RenderWidget that it lost the mouse lock. 290 // Notifies the RenderWidget that it lost the mouse lock.
291 void SendMouseLockLost(); 291 void SendMouseLockLost();
292 292
293 // Noifies the RenderWidget of the current mouse cursor visibility state. 293 // Noifies the RenderWidget of the current mouse cursor visibility state.
294 void SendCursorVisibilityState(bool is_visible); 294 void SendCursorVisibilityState(bool is_visible);
295 295
296 // Notifies the RenderWidgetHost that the View was destroyed. 296 // Notifies the RenderWidgetHost that the View was destroyed.
297 void ViewDestroyed(); 297 void ViewDestroyed();
298 298
299 // Signals if this host has forwarded a GestureScrollBegin without yet having
300 // forwarded a matching GestureScrollEnd/GestureFlingStart.
301 bool is_in_touchscreen_gesture_scroll() const {
302 return is_in_touchscreen_gesture_scroll_;
303 }
304
305 #if defined(OS_MACOSX) 299 #if defined(OS_MACOSX)
306 // Pause for a moment to wait for pending repaint or resize messages sent to 300 // Pause for a moment to wait for pending repaint or resize messages sent to
307 // the renderer to arrive. If pending resize messages are for an old window 301 // the renderer to arrive. If pending resize messages are for an old window
308 // size, then also pump through a new resize message if there is time. 302 // size, then also pump through a new resize message if there is time.
309 void PauseForPendingResizeOrRepaints(); 303 void PauseForPendingResizeOrRepaints();
310 304
311 // Whether pausing may be useful. 305 // Whether pausing may be useful.
312 bool CanPauseForPendingResizeOrRepaints(); 306 bool CanPauseForPendingResizeOrRepaints();
313 307
314 // Wait for a surface matching the size of the widget's view, possibly 308 // Wait for a surface matching the size of the widget's view, possibly
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 virtual void ForwardTouchEventWithLatencyInfo( 345 virtual void ForwardTouchEventWithLatencyInfo(
352 const blink::WebTouchEvent& touch_event, 346 const blink::WebTouchEvent& touch_event,
353 const ui::LatencyInfo& ui_latency); // Virtual for testing. 347 const ui::LatencyInfo& ui_latency); // Virtual for testing.
354 void ForwardMouseEventWithLatencyInfo( 348 void ForwardMouseEventWithLatencyInfo(
355 const blink::WebMouseEvent& mouse_event, 349 const blink::WebMouseEvent& mouse_event,
356 const ui::LatencyInfo& ui_latency); 350 const ui::LatencyInfo& ui_latency);
357 virtual void ForwardWheelEventWithLatencyInfo( 351 virtual void ForwardWheelEventWithLatencyInfo(
358 const blink::WebMouseWheelEvent& wheel_event, 352 const blink::WebMouseWheelEvent& wheel_event,
359 const ui::LatencyInfo& ui_latency); // Virtual for testing. 353 const ui::LatencyInfo& ui_latency); // Virtual for testing.
360 354
355 // Signals if this host has forwarded a GestureScrollBegin without yet having
356 // forwarded a matching GestureScrollEnd/GestureFlingStart.
357 bool is_in_gesture_scroll(blink::WebGestureDevice device) override;
bokan 2017/04/11 16:23:14 Touchscreen and Touchpad gesture event streams can
sahel 2017/04/12 15:40:22 This function is used only for wheel/touchpad scro
bokan 2017/04/12 19:15:10 I don't think that's true. Taking a quick look, it
sahel 2017/04/18 15:43:43 I think is_in_touchscreen_gesture_scroll() is call
358
361 // Enables/disables touch emulation using mouse event. See TouchEmulator. 359 // Enables/disables touch emulation using mouse event. See TouchEmulator.
362 void SetTouchEventEmulationEnabled( 360 void SetTouchEventEmulationEnabled(
363 bool enabled, ui::GestureProviderConfigType config_type); 361 bool enabled, ui::GestureProviderConfigType config_type);
364 362
365 // TouchEmulatorClient implementation. 363 // TouchEmulatorClient implementation.
366 void ForwardEmulatedGestureEvent( 364 void ForwardEmulatedGestureEvent(
367 const blink::WebGestureEvent& gesture_event) override; 365 const blink::WebGestureEvent& gesture_event) override;
368 void ForwardEmulatedTouchEvent( 366 void ForwardEmulatedTouchEvent(
369 const blink::WebTouchEvent& touch_event) override; 367 const blink::WebTouchEvent& touch_event) override;
370 void SetCursor(const WebCursor& cursor) override; 368 void SetCursor(const WebCursor& cursor) override;
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; 972 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_;
975 973
976 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 974 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
977 975
978 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 976 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
979 }; 977 };
980 978
981 } // namespace content 979 } // namespace content
982 980
983 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 981 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698