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

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: Address comments. 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_input_event_router.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 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 // Data types declared here to simplify later removal, and understanding of
126 // the code while it's in this intermediate state.
127 static const unsigned kNumLastEventTypes = 5;
128 struct GestureQueueDebugData {
129 unsigned long number_of_gesture_targets_enqueued;
130 unsigned long number_of_gesture_targets_dequeued;
131 int last_gesture_event_types[kNumLastEventTypes];
132 int last_touch_event_types[kNumLastEventTypes];
133 unsigned next_gesture_event_index;
134 unsigned next_touch_event_index;
135
136 GestureQueueDebugData();
137 };
138 GestureQueueDebugData debug_data_;
139
124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); 140 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter);
125 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, 141 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest,
126 InputEventRouterGestureTargetQueueTest); 142 InputEventRouterGestureTargetQueueTest);
127 }; 143 };
128 144
129 } // namespace content 145 } // namespace content
130 146
131 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _ 147 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H _
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_input_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698