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

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

Issue 1861733002: Add touch drag UMA latency metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually fix tests. 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 (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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 const base::TimeTicks& paint_start); 600 const base::TimeTicks& paint_start);
601 601
602 // Give key press listeners a chance to handle this key press. This allow 602 // Give key press listeners a chance to handle this key press. This allow
603 // widgets that don't have focus to still handle key presses. 603 // widgets that don't have focus to still handle key presses.
604 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); 604 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event);
605 605
606 // InputRouterClient 606 // InputRouterClient
607 InputEventAckState FilterInputEvent( 607 InputEventAckState FilterInputEvent(
608 const blink::WebInputEvent& event, 608 const blink::WebInputEvent& event,
609 const ui::LatencyInfo& latency_info) override; 609 const ui::LatencyInfo& latency_info) override;
610 void OnForwardEventToRenderer(const blink::WebInputEvent& input_event,
611 ui::LatencyInfo* latency_info) override;
612
610 void IncrementInFlightEventCount() override; 613 void IncrementInFlightEventCount() override;
611 void DecrementInFlightEventCount() override; 614 void DecrementInFlightEventCount() override;
612 void OnHasTouchEventHandlers(bool has_handlers) override; 615 void OnHasTouchEventHandlers(bool has_handlers) override;
613 void DidFlush() override; 616 void DidFlush() override;
614 void DidOverscroll(const DidOverscrollParams& params) override; 617 void DidOverscroll(const DidOverscrollParams& params) override;
615 void DidStopFlinging() override; 618 void DidStopFlinging() override;
616 619
617 // InputAckHandler 620 // InputAckHandler
618 void OnKeyboardEventAck(const NativeWebKeyboardEventWithLatencyInfo& event, 621 void OnKeyboardEventAck(const NativeWebKeyboardEventWithLatencyInfo& event,
619 InputEventAckState ack_result) override; 622 InputEventAckState ack_result) override;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 base::TimeDelta new_content_rendering_delay_; 825 base::TimeDelta new_content_rendering_delay_;
823 826
824 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 827 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
825 828
826 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 829 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
827 }; 830 };
828 831
829 } // namespace content 832 } // namespace content
830 833
831 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 834 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698