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

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

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: Fix a few DCHECK hits Created 3 years, 11 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 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 InputHandlerProxy::~InputHandlerProxy() {} 275 InputHandlerProxy::~InputHandlerProxy() {}
276 276
277 void InputHandlerProxy::WillShutdown() { 277 void InputHandlerProxy::WillShutdown() {
278 scroll_elasticity_controller_.reset(); 278 scroll_elasticity_controller_.reset();
279 input_handler_ = NULL; 279 input_handler_ = NULL;
280 client_->WillShutdown(); 280 client_->WillShutdown();
281 } 281 }
282 282
283 void InputHandlerProxy::HandleInputEventWithLatencyInfo( 283 void InputHandlerProxy::HandleInputEventWithLatencyInfo(
284 ScopedWebInputEvent event, 284 blink::WebScopedInputEvent event,
285 const LatencyInfo& latency_info, 285 const LatencyInfo& latency_info,
286 const EventDispositionCallback& callback) { 286 const EventDispositionCallback& callback) {
287 DCHECK(input_handler_); 287 DCHECK(input_handler_);
288 288
289 if (uma_latency_reporting_enabled_) 289 if (uma_latency_reporting_enabled_)
290 ReportInputEventLatencyUma(*event, latency_info); 290 ReportInputEventLatencyUma(*event, latency_info);
291 291
292 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow", 292 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow",
293 TRACE_ID_DONT_MANGLE(latency_info.trace_id()), 293 TRACE_ID_DONT_MANGLE(latency_info.trace_id()),
294 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, 294 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT,
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, 1539 scroll_elasticity_controller_->GetWeakPtr(), gesture_event,
1540 scroll_result)); 1540 scroll_result));
1541 } 1541 }
1542 1542
1543 void InputHandlerProxy::SetTickClockForTesting( 1543 void InputHandlerProxy::SetTickClockForTesting(
1544 std::unique_ptr<base::TickClock> tick_clock) { 1544 std::unique_ptr<base::TickClock> tick_clock) {
1545 tick_clock_ = std::move(tick_clock); 1545 tick_clock_ = std::move(tick_clock);
1546 } 1546 }
1547 1547
1548 } // namespace ui 1548 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698