@@ -254,20 +254,8 @@ bool IsSystemKeyEvent(const blink::WebKeyboardEvent& event) {
254
254
255
255
} // namespace
256
256
257
- blink::WebKeyboardEvent WebKeyboardEventBuilder::Build (NSEvent * event,
258
- bool record_debug_uma) {
257
+ blink::WebKeyboardEvent WebKeyboardEventBuilder::Build (NSEvent * event) {
259
258
ui::ComputeEventLatencyOS (event);
260
- base::TimeTicks now = ui::EventTimeForNow ();
261
- base::TimeTicks hardware_timestamp =
262
- ui::EventTimeStampFromSeconds ([event timestamp ]);
263
- if (record_debug_uma) {
264
- if (ui::EventTypeFromNative (event) == ui::ET_KEY_PRESSED) {
265
- base::TimeDelta diff = (now - hardware_timestamp).magnitude ();
266
- UMA_HISTOGRAM_CUSTOM_TIMES (
267
- " Event.Latency.OS_NO_VALIDATION.POSITIVE.KEY_PRESSED" , diff,
268
- base::Milliseconds (1 ), base::Seconds (60 ), 50 );
269
- }
270
- }
271
259
272
260
ui::DomCode dom_code = ui::DomCodeFromNSEvent (event);
273
261
int modifiers =
@@ -327,15 +315,6 @@ bool IsSystemKeyEvent(const blink::WebKeyboardEvent& event) {
327
315
blink::WebPointerProperties::PointerType pointerType,
328
316
bool unacceleratedMovement) {
329
317
ui::ComputeEventLatencyOS (event);
330
- base::TimeTicks now = ui::EventTimeForNow ();
331
- base::TimeTicks hardware_timestamp =
332
- ui::EventTimeStampFromSeconds ([event timestamp ]);
333
- if (ui::EventTypeFromNative (event) == ui::ET_MOUSE_PRESSED) {
334
- base::TimeDelta diff = (now - hardware_timestamp).magnitude ();
335
- UMA_HISTOGRAM_CUSTOM_TIMES (
336
- " Event.Latency.OS_NO_VALIDATION.POSITIVE.MOUSE_PRESSED" , diff,
337
- base::Milliseconds (1 ), base::Seconds (60 ), 50 );
338
- }
339
318
blink::WebInputEvent::Type event_type =
340
319
blink::WebInputEvent::Type::kUndefined ;
341
320
int click_count = 0 ;
@@ -454,13 +433,6 @@ bool IsSystemKeyEvent(const blink::WebKeyboardEvent& event) {
454
433
NSEvent * event,
455
434
NSView * view) {
456
435
ui::ComputeEventLatencyOS (event);
457
- base::TimeTicks now = ui::EventTimeForNow ();
458
- base::TimeTicks hardware_timestamp =
459
- ui::EventTimeStampFromSeconds ([event timestamp ]);
460
- base::TimeDelta diff = (now - hardware_timestamp).magnitude ();
461
- UMA_HISTOGRAM_CUSTOM_TIMES (
462
- " Event.Latency.OS_NO_VALIDATION.POSITIVE.MOUSE_WHEEL" , diff,
463
- base::Milliseconds (1 ), base::Seconds (60 ), 50 );
464
436
blink::WebMouseWheelEvent result (
465
437
blink::WebInputEvent::Type::kMouseWheel , ModifiersFromEvent (event),
466
438
ui::EventTimeStampFromSeconds ([event timestamp ]));
@@ -692,15 +664,6 @@ bool IsSystemKeyEvent(const blink::WebKeyboardEvent& event) {
692
664
693
665
blink::WebTouchEvent result (event_type, ModifiersFromEvent (event),
694
666
ui::EventTimeStampFromSeconds ([event timestamp ]));
695
- if (ui::EventTypeFromNative (event) == ui::ET_TOUCH_PRESSED) {
696
- base::TimeTicks now = ui::EventTimeForNow ();
697
- base::TimeTicks hardware_timestamp =
698
- ui::EventTimeStampFromSeconds ([event timestamp ]);
699
- UMA_HISTOGRAM_CUSTOM_TIMES (
700
- " Event.Latency.OS.NO_VALIDATION.POSITIVE.TOUCH_PRESSED" ,
701
- (now - hardware_timestamp).magnitude (), base::Milliseconds (1 ),
702
- base::Seconds (60 ), 50 );
703
- }
704
667
ui::ComputeEventLatencyOS (event);
705
668
result.hovering = event_type == blink::WebInputEvent::Type::kTouchEnd ;
706
669
result.unique_touch_event_id = ui::GetNextTouchEventId ();
0 commit comments