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

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

Issue 18937002: Add UMA/Telemetry stats for end-to-end scroll latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rename NewInputLatencyInfo() to CreateRWHLatencyInfoIfNotExist() Created 7 years, 5 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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 int event_size, const ui::LatencyInfo& latency_info, 530 int event_size, const ui::LatencyInfo& latency_info,
531 bool is_keyboard_shortcut); 531 bool is_keyboard_shortcut);
532 532
533 // Internal forwarding implementations that take a LatencyInfo. 533 // Internal forwarding implementations that take a LatencyInfo.
534 virtual void ForwardMouseEventWithLatencyInfo( 534 virtual void ForwardMouseEventWithLatencyInfo(
535 const MouseEventWithLatencyInfo& mouse_event); 535 const MouseEventWithLatencyInfo& mouse_event);
536 virtual void ForwardWheelEventWithLatencyInfo( 536 virtual void ForwardWheelEventWithLatencyInfo(
537 const WebKit::WebMouseWheelEvent& wheel_event, 537 const WebKit::WebMouseWheelEvent& wheel_event,
538 const ui::LatencyInfo& latency_info); 538 const ui::LatencyInfo& latency_info);
539 539
540 // Create a LatencyInfo struct for a new input event that was just received. 540 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT
541 ui::LatencyInfo NewInputLatencyInfo(); 541 // component if it is not already in |original|. And if |original| is
542 // not NULL, it is also merged into the resulting LatencyInfo.
543 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist(
544 const ui::LatencyInfo* original);
542 545
543 // Called when we receive a notification indicating that the renderer 546 // Called when we receive a notification indicating that the renderer
544 // process has gone. This will reset our state so that our state will be 547 // process has gone. This will reset our state so that our state will be
545 // consistent if a new renderer is created. 548 // consistent if a new renderer is created.
546 void RendererExited(base::TerminationStatus status, int exit_code); 549 void RendererExited(base::TerminationStatus status, int exit_code);
547 550
548 // Retrieves an id the renderer can use to refer to its view. 551 // Retrieves an id the renderer can use to refer to its view.
549 // This is used for various IPC messages, including plugins. 552 // This is used for various IPC messages, including plugins.
550 gfx::NativeViewId GetNativeViewId() const; 553 gfx::NativeViewId GetNativeViewId() const;
551 554
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 int64 last_input_number_; 953 int64 last_input_number_;
951 954
952 BrowserRenderingStats rendering_stats_; 955 BrowserRenderingStats rendering_stats_;
953 956
954 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 957 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
955 }; 958 };
956 959
957 } // namespace content 960 } // namespace content
958 961
959 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 962 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698