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

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: Format input_message 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 uint32 unique_touch_event_id)
32 : InputEventAck(type, state, ui::LatencyInfo(), unique_touch_event_id) {
33 }
34
35 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
36 InputEventAckState state)
37 : InputEventAck(type, state, 0) {
38 }
39
40 InputEventAck::InputEventAck()
41 : InputEventAck(blink::WebInputEvent::Undefined,
42 INPUT_EVENT_ACK_STATE_UNKNOWN) {
43 }
44
45 InputEventAck::~InputEventAck() {
46 }
47
48 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/input_event_ack.h ('k') | content/common/input/synthetic_web_input_event_builders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698