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

Side by Side Diff: content/common/input/input_event_ack.cc

Issue 997283002: Coalesce async touch move events until the ack back from render (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unittests Created 5 years, 7 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/common/input/input_event_ack.h"
6
7 namespace content {
8
9 InputEventAck::InputEventAck(
10 blink::WebInputEvent::Type type,
11 InputEventAckState state,
12 const ui::LatencyInfo& latency,
13 scoped_ptr<content::DidOverscrollParams> overscroll,
14 uint32 unique_touch_event_id)
15 : type(type),
16 state(state),
17 latency(latency),
18 overscroll(overscroll.Pass()),
19 unique_touch_event_id(unique_touch_event_id) {
20 }
21
22 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
23 InputEventAckState state,
24 const ui::LatencyInfo& latency,
25 uint32 unique_touch_event_id)
26 : InputEventAck(type, state, latency, nullptr, unique_touch_event_id) {
27 }
28
29 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
30 InputEventAckState state)
31 : InputEventAck(type, state, ui::LatencyInfo(), 0) {
32 }
33
34 InputEventAck::InputEventAck()
35 : unique_touch_event_id(0) {
jdduke (slow) 2015/05/08 21:30:49 We should also initialize type (to WebInputEvent::
lanwei 2015/05/11 19:27:56 Done.
36 }
37
38 InputEventAck::~InputEventAck() {
39 }
40
41 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698