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

Unified Diff: content/browser/renderer_host/input/mouse_wheel_event_queue.h

Issue 2882443002: Tiimer based phase info generated for mouse wheel events. (Closed)
Patch Set: review comments addressed. Created 3 years, 7 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..d4e9c7e97d47bdae55ee764217e55e8e0e714426 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.h
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
@@ -9,7 +9,6 @@
#include <memory>
#include "base/time/time.h"
-#include "base/timer/timer.h"
#include "content/browser/renderer_host/event_with_latency_info.h"
#include "content/common/content_export.h"
#include "content/common/input/input_event_ack_state.h"
@@ -17,11 +16,6 @@
namespace content {
-// The duration in which a ScrollEnd will be sent after the last
-// ScrollUpdate was sent for wheel based gesture scrolls.
-// This value is used only if |enable_scroll_latching_| is true.
-const int64_t kDefaultWheelScrollLatchingTransactionMs = 100;
-
class QueuedWebMouseWheelEvent;
// Interface with which MouseWheelEventQueue can forward mouse wheel events,
@@ -85,7 +79,6 @@ class CONTENT_EXPORT MouseWheelEventQueue {
bool synthetic);
MouseWheelEventQueueClient* client_;
- base::OneShotTimer scroll_end_timer_;
std::deque<std::unique_ptr<QueuedWebMouseWheelEvent>> wheel_queue_;
std::unique_ptr<QueuedWebMouseWheelEvent> event_sent_for_gesture_ack_;
@@ -100,7 +93,6 @@ class CONTENT_EXPORT MouseWheelEventQueue {
// True if the touchpad and wheel scroll latching is enabled.
bool enable_scroll_latching_;
- int64_t scroll_transaction_ms_;
blink::WebGestureDevice scrolling_device_;
DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue);

Powered by Google App Engine
This is Rietveld 408576698