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

Side by Side Diff: ui/events/blink/input_handler_proxy.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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 | « ui/events/blink/input_handler_proxy.h ('k') | ui/events/blink/input_handler_proxy_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "ui/events/blink/input_handler_proxy.h" 5 #include "ui/events/blink/input_handler_proxy.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 if (uma_latency_reporting_enabled_) 266 if (uma_latency_reporting_enabled_)
267 ReportInputEventLatencyUma(event, *latency_info); 267 ReportInputEventLatencyUma(event, *latency_info);
268 268
269 TRACE_EVENT_WITH_FLOW1("input,benchmark", 269 TRACE_EVENT_WITH_FLOW1("input,benchmark",
270 "LatencyInfo.Flow", 270 "LatencyInfo.Flow",
271 TRACE_ID_DONT_MANGLE(latency_info->trace_id()), 271 TRACE_ID_DONT_MANGLE(latency_info->trace_id()),
272 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, 272 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT,
273 "step", "HandleInputEventImpl"); 273 "step", "HandleInputEventImpl");
274 274
275 scoped_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor = 275 std::unique_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor =
276 input_handler_->CreateLatencyInfoSwapPromiseMonitor(latency_info); 276 input_handler_->CreateLatencyInfoSwapPromiseMonitor(latency_info);
277 InputHandlerProxy::EventDisposition disposition = HandleInputEvent(event); 277 InputHandlerProxy::EventDisposition disposition = HandleInputEvent(event);
278 return disposition; 278 return disposition;
279 } 279 }
280 280
281 InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent( 281 InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent(
282 const WebInputEvent& event) { 282 const WebInputEvent& event) {
283 DCHECK(input_handler_); 283 DCHECK(input_handler_);
284 284
285 if (FilterInputEventForFlingBoosting(event)) 285 if (FilterInputEventForFlingBoosting(event))
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 // is made asynchronously, to minimize divergence between main thread and 1345 // is made asynchronously, to minimize divergence between main thread and
1346 // impl thread event handling paths. 1346 // impl thread event handling paths.
1347 base::ThreadTaskRunnerHandle::Get()->PostTask( 1347 base::ThreadTaskRunnerHandle::Get()->PostTask(
1348 FROM_HERE, 1348 FROM_HERE,
1349 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, 1349 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult,
1350 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, 1350 scroll_elasticity_controller_->GetWeakPtr(), gesture_event,
1351 scroll_result)); 1351 scroll_result));
1352 } 1352 }
1353 1353
1354 } // namespace ui 1354 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/blink/input_handler_proxy.h ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698