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

Unified Diff: content/browser/renderer_host/render_widget_host_input_event_router.h

Issue 1783533002: Add code to collect crash data for https://crbug.com/592319. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_input_event_router.h
diff --git a/content/browser/renderer_host/render_widget_host_input_event_router.h b/content/browser/renderer_host/render_widget_host_input_event_router.h
index b4123539c5831f6b124b6ba3e4bd72beb34c6dce..9c5cacc51d847ee598af9f8b6a8ac07fd75db23b 100644
--- a/content/browser/renderer_host/render_widget_host_input_event_router.h
+++ b/content/browser/renderer_host/render_widget_host_input_event_router.h
@@ -121,6 +121,15 @@ class CONTENT_EXPORT RenderWidgetHostInputEventRouter
std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash>
hittest_data_;
+ // Debugging data for https://crbug.com/592319.
+ unsigned long number_of_gesture_targets_enqueued_;
+ unsigned long number_of_gesture_targets_dequeued_;
+ static const unsigned kNumLastEventTypes = 5;
+ int last_gesture_event_types_[kNumLastEventTypes];
+ int last_touch_event_types_[kNumLastEventTypes];
+ unsigned last_gesture_event_index_;
+ unsigned last_touch_event_index_;
tdresser 2016/03/09 19:53:45 Would the dump still be easily legible if you dump
wjmaclean 2016/03/09 21:28:31 Done.
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter);
FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest,
InputEventRouterGestureTargetQueueTest);

Powered by Google App Engine
This is Rietveld 408576698