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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_INPUT_EVENT_ROUTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 SurfaceIdNamespaceOwnerMap owner_map_; 114 SurfaceIdNamespaceOwnerMap owner_map_;
115 GestureTargetQueue gesture_target_queue_; 115 GestureTargetQueue gesture_target_queue_;
116 RenderWidgetHostViewBase* touch_target_; 116 RenderWidgetHostViewBase* touch_target_;
117 RenderWidgetHostViewBase* gesture_target_; 117 RenderWidgetHostViewBase* gesture_target_;
118 gfx::Vector2d touch_delta_; 118 gfx::Vector2d touch_delta_;
119 gfx::Vector2d gesture_delta_; 119 gfx::Vector2d gesture_delta_;
120 int active_touches_; 120 int active_touches_;
121 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> 121 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash>
122 hittest_data_; 122 hittest_data_;
123 123
124 // Debugging data for https://crbug.com/592319.
125 unsigned long number_of_gesture_targets_enqueued_;
126 unsigned long number_of_gesture_targets_dequeued_;
127 static const unsigned kNumLastEventTypes = 5;
128 int last_gesture_event_types_[kNumLastEventTypes];
129 int last_touch_event_types_[kNumLastEventTypes];
130 unsigned last_gesture_event_index_;
131 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.
132
124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); 133 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter);
125 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, 134 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest,
126 InputEventRouterGestureTargetQueueTest); 135 InputEventRouterGestureTargetQueueTest);
127 }; 136 };
128 137
129 } // namespace content 138 } // namespace content
130 139
131 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _ 140 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698