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

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

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 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.cc
diff --git a/content/browser/renderer_host/render_widget_host_input_event_router.cc b/content/browser/renderer_host/render_widget_host_input_event_router.cc
index 1f226d8833fb6fbac70ba1a1787258533315d9f4..ffa31e6bfa6c0e5c5c11cdb79d4b2eec858815ef 100644
--- a/content/browser/renderer_host/render_widget_host_input_event_router.cc
+++ b/content/browser/renderer_host/render_widget_host_input_event_router.cc
@@ -483,7 +483,7 @@ void RenderWidgetHostInputEventRouter::SendMouseEnterOrLeaveEvents(
gfx::Point transformed_point;
// Send MouseLeaves.
- for (auto view : exited_views) {
+ for (auto* view : exited_views) {
blink::WebMouseEvent mouse_leave(*event);
mouse_leave.setType(blink::WebInputEvent::MouseLeave);
// There is a chance of a race if the last target has recently created a
@@ -512,7 +512,7 @@ void RenderWidgetHostInputEventRouter::SendMouseEnterOrLeaveEvents(
}
// Send MouseMoves to trigger MouseEnter handlers.
- for (auto view : entered_views) {
+ for (auto* view : entered_views) {
if (view == target)
continue;
blink::WebMouseEvent mouse_enter(*event);
@@ -702,7 +702,7 @@ void RenderWidgetHostInputEventRouter::RouteTouchscreenGestureEvent(
// TODO(wjmaclean,kenrb,tdresser): When scroll latching lands, we can
// revisit how this code should work.
// https://crbug.com/526463
- auto rwhi =
+ auto* rwhi =
static_cast<RenderWidgetHostImpl*>(root_view->GetRenderWidgetHost());
// If the root view is the current gesture target, then we explicitly don't
// send a GestureScrollBegin, as by the time we see GesturePinchBegin there
@@ -720,7 +720,7 @@ void RenderWidgetHostInputEventRouter::RouteTouchscreenGestureEvent(
in_touchscreen_gesture_pinch_ = false;
// If the root view wasn't already receiving the gesture stream, then we
// need to wrap the diverted pinch events in a GestureScrollBegin/End.
- auto rwhi =
+ auto* rwhi =
static_cast<RenderWidgetHostImpl*>(root_view->GetRenderWidgetHost());
if (root_view != touchscreen_gesture_target_.target &&
gesture_pinch_did_send_scroll_begin_ &&

Powered by Google App Engine
This is Rietveld 408576698