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

Unified Diff: content/browser/renderer_host/input/mouse_wheel_event_queue.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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/mouse_wheel_event_queue.h
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.h b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
index 1f465b5051cd8f5d5218b4862d2c09276505f416..81818aedd508ee68ba88e7f6c11714c34d081ac1 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.h
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
@@ -37,6 +37,7 @@ class CONTENT_EXPORT MouseWheelEventQueueClient {
const ui::LatencyInfo& latency_info) = 0;
virtual void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event,
InputEventAckState ack_result) = 0;
+ virtual bool is_in_gesture_scroll() = 0;
};
// A queue for throttling and coalescing mouse wheel events.
@@ -90,13 +91,6 @@ class CONTENT_EXPORT MouseWheelEventQueue {
std::deque<std::unique_ptr<QueuedWebMouseWheelEvent>> wheel_queue_;
std::unique_ptr<QueuedWebMouseWheelEvent> event_sent_for_gesture_ack_;
- // True if a non-synthetic GSB needs to be sent before a GSU is sent.
- bool needs_scroll_begin_;
-
- // True if a non-synthetic GSE needs to be sent because a non-synthetic
- // GSB has been sent in the past.
- bool needs_scroll_end_;
-
// True if the touchpad and wheel scroll latching is enabled.
bool enable_scroll_latching_;

Powered by Google App Engine
This is Rietveld 408576698