Chromium Code Reviews| Index: content/renderer/input/scoped_web_input_event_with_latency_info.cc |
| diff --git a/content/common/input/event_with_latency_info.cc b/content/renderer/input/scoped_web_input_event_with_latency_info.cc |
| similarity index 87% |
| rename from content/common/input/event_with_latency_info.cc |
| rename to content/renderer/input/scoped_web_input_event_with_latency_info.cc |
| index d4ea6731bc9e04f671cf0dc6b32c1762ac0d4f5b..88bb0bc126da06ec9099e2ff0783bac5d920cc83 100644 |
| --- a/content/common/input/event_with_latency_info.cc |
| +++ b/content/renderer/input/scoped_web_input_event_with_latency_info.cc |
| @@ -1,17 +1,17 @@ |
| -// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#include "content/common/input/event_with_latency_info.h" |
| +#include "content/renderer/input/scoped_web_input_event_with_latency_info.h" |
| using blink::WebInputEvent; |
| namespace content { |
| ScopedWebInputEventWithLatencyInfo::ScopedWebInputEventWithLatencyInfo( |
| - blink::WebScopedInputEvent event, |
| + ui::WebScopedInputEvent event, |
| const ui::LatencyInfo& latency_info) |
| - : event_(new blink::WebCoalescedInputEvent(std::move(event))), |
| + : event_(new blink::WebCoalescedInputEvent(*(event.get()))), |
|
dcheng
2017/02/10 10:17:25
Nit: I think *event should suffice here.
jam
2017/02/10 15:48:58
Done.
|
| latency_(latency_info) {} |
| ScopedWebInputEventWithLatencyInfo::~ScopedWebInputEventWithLatencyInfo() {} |