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

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

Issue 2683043004: Remove ui/events/blink dependency on blink_minimal. (Closed)
Patch Set: fix win debug 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 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 InputHandlerProxy::~InputHandlerProxy() {} 285 InputHandlerProxy::~InputHandlerProxy() {}
286 286
287 void InputHandlerProxy::WillShutdown() { 287 void InputHandlerProxy::WillShutdown() {
288 scroll_elasticity_controller_.reset(); 288 scroll_elasticity_controller_.reset();
289 input_handler_ = NULL; 289 input_handler_ = NULL;
290 client_->WillShutdown(); 290 client_->WillShutdown();
291 } 291 }
292 292
293 void InputHandlerProxy::HandleInputEventWithLatencyInfo( 293 void InputHandlerProxy::HandleInputEventWithLatencyInfo(
294 blink::WebScopedInputEvent event, 294 WebScopedInputEvent event,
295 const LatencyInfo& latency_info, 295 const LatencyInfo& latency_info,
296 const EventDispositionCallback& callback) { 296 const EventDispositionCallback& callback) {
297 DCHECK(input_handler_); 297 DCHECK(input_handler_);
298 298
299 if (uma_latency_reporting_enabled_) 299 if (uma_latency_reporting_enabled_)
300 ReportInputEventLatencyUma(*event, latency_info); 300 ReportInputEventLatencyUma(*event, latency_info);
301 301
302 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow", 302 TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow",
303 TRACE_ID_DONT_MANGLE(latency_info.trace_id()), 303 TRACE_ID_DONT_MANGLE(latency_info.trace_id()),
304 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, 304 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT,
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, 1614 scroll_elasticity_controller_->GetWeakPtr(), gesture_event,
1615 scroll_result)); 1615 scroll_result));
1616 } 1616 }
1617 1617
1618 void InputHandlerProxy::SetTickClockForTesting( 1618 void InputHandlerProxy::SetTickClockForTesting(
1619 std::unique_ptr<base::TickClock> tick_clock) { 1619 std::unique_ptr<base::TickClock> tick_clock) {
1620 tick_clock_ = std::move(tick_clock); 1620 tick_clock_ = std::move(tick_clock);
1621 } 1621 }
1622 1622
1623 } // namespace ui 1623 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698