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

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: address sadrul's comment 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 int event_size, const ui::LatencyInfo& latency_info, 531 int event_size, const ui::LatencyInfo& latency_info,
532 bool is_keyboard_shortcut); 532 bool is_keyboard_shortcut);
533 533
534 // Internal forwarding implementations that take a LatencyInfo. 534 // Internal forwarding implementations that take a LatencyInfo.
535 virtual void ForwardMouseEventWithLatencyInfo( 535 virtual void ForwardMouseEventWithLatencyInfo(
536 const MouseEventWithLatencyInfo& mouse_event); 536 const MouseEventWithLatencyInfo& mouse_event);
537 virtual void ForwardWheelEventWithLatencyInfo( 537 virtual void ForwardWheelEventWithLatencyInfo(
538 const WebKit::WebMouseWheelEvent& wheel_event, 538 const WebKit::WebMouseWheelEvent& wheel_event,
539 const ui::LatencyInfo& latency_info); 539 const ui::LatencyInfo& latency_info);
540 540
541 // Create a LatencyInfo struct for a new input event that was just received. 541 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT
542 ui::LatencyInfo NewInputLatencyInfo(); 542 // component if it is not already in |original|. And if |original| is
543 // not NULL, it is also merged into the resulting LatencyInfo.
544 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist(
545 const ui::LatencyInfo* original);
543 546
544 // Called when we receive a notification indicating that the renderer 547 // Called when we receive a notification indicating that the renderer
545 // process has gone. This will reset our state so that our state will be 548 // process has gone. This will reset our state so that our state will be
546 // consistent if a new renderer is created. 549 // consistent if a new renderer is created.
547 void RendererExited(base::TerminationStatus status, int exit_code); 550 void RendererExited(base::TerminationStatus status, int exit_code);
548 551
549 // Retrieves an id the renderer can use to refer to its view. 552 // Retrieves an id the renderer can use to refer to its view.
550 // This is used for various IPC messages, including plugins. 553 // This is used for various IPC messages, including plugins.
551 gfx::NativeViewId GetNativeViewId() const; 554 gfx::NativeViewId GetNativeViewId() const;
552 555
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 int64 last_input_number_; 958 int64 last_input_number_;
956 959
957 BrowserRenderingStats rendering_stats_; 960 BrowserRenderingStats rendering_stats_;
958 961
959 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 962 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
960 }; 963 };
961 964
962 } // namespace content 965 } // namespace content
963 966
964 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 967 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698