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

Side by Side Diff: content/browser/renderer_host/input/mouse_wheel_event_queue.h

Issue 1911963005: Fix reporting of TouchToFirstScroll latency metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a few nits Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 13 matching lines...) Expand all
24 class QueuedWebMouseWheelEvent; 24 class QueuedWebMouseWheelEvent;
25 25
26 // Interface with which MouseWheelEventQueue can forward mouse wheel events, 26 // Interface with which MouseWheelEventQueue can forward mouse wheel events,
27 // and dispatch mouse wheel event responses. 27 // and dispatch mouse wheel event responses.
28 class CONTENT_EXPORT MouseWheelEventQueueClient { 28 class CONTENT_EXPORT MouseWheelEventQueueClient {
29 public: 29 public:
30 virtual ~MouseWheelEventQueueClient() {} 30 virtual ~MouseWheelEventQueueClient() {}
31 31
32 virtual void SendMouseWheelEventImmediately( 32 virtual void SendMouseWheelEventImmediately(
33 const MouseWheelEventWithLatencyInfo& event) = 0; 33 const MouseWheelEventWithLatencyInfo& event) = 0;
34 virtual void ForwardGestureEvent(const blink::WebGestureEvent& event) = 0; 34 virtual void ForwardGestureEventWithLatencyInfo(
35 const blink::WebGestureEvent& event,
36 const ui::LatencyInfo& latency_info) = 0;
35 virtual void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event, 37 virtual void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event,
36 InputEventAckState ack_result) = 0; 38 InputEventAckState ack_result) = 0;
37 }; 39 };
38 40
39 // A queue for throttling and coalescing mouse wheel events. 41 // A queue for throttling and coalescing mouse wheel events.
40 class CONTENT_EXPORT MouseWheelEventQueue { 42 class CONTENT_EXPORT MouseWheelEventQueue {
41 public: 43 public:
42 // The |client| must outlive the MouseWheelEventQueue. |send_gestures| 44 // The |client| must outlive the MouseWheelEventQueue. |send_gestures|
43 // indicates whether mouse wheel events should generate 45 // indicates whether mouse wheel events should generate
44 // Scroll[Begin|Update|End] on unhandled acknowledge events. 46 // Scroll[Begin|Update|End] on unhandled acknowledge events.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool send_gestures_; 101 bool send_gestures_;
100 int64_t scroll_transaction_ms_; 102 int64_t scroll_transaction_ms_;
101 blink::WebGestureDevice scrolling_device_; 103 blink::WebGestureDevice scrolling_device_;
102 104
103 DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue); 105 DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue);
104 }; 106 };
105 107
106 } // namespace content 108 } // namespace content
107 109
108 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_ 110 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698