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

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

Issue 2482453002: Don't restart the hang renderer timeout on messages ack'd from the compositor thread. (Closed)
Patch Set: Fix mac build Created 4 years, 1 month 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
« no previous file with comments | « content/common/input/input_event_ack.h ('k') | content/common/input/input_event_ack_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 "content/common/input/input_event_ack.h" 5 #include "content/common/input/input_event_ack.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace content { 9 namespace content {
10 10
11 InputEventAck::InputEventAck( 11 InputEventAck::InputEventAck(
12 InputEventAckSource source,
12 blink::WebInputEvent::Type type, 13 blink::WebInputEvent::Type type,
13 InputEventAckState state, 14 InputEventAckState state,
14 const ui::LatencyInfo& latency, 15 const ui::LatencyInfo& latency,
15 std::unique_ptr<ui::DidOverscrollParams> overscroll, 16 std::unique_ptr<ui::DidOverscrollParams> overscroll,
16 uint32_t unique_touch_event_id) 17 uint32_t unique_touch_event_id)
17 : type(type), 18 : source(source),
19 type(type),
18 state(state), 20 state(state),
19 latency(latency), 21 latency(latency),
20 overscroll(std::move(overscroll)), 22 overscroll(std::move(overscroll)),
21 unique_touch_event_id(unique_touch_event_id) {} 23 unique_touch_event_id(unique_touch_event_id) {}
22 24
23 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, 25 InputEventAck::InputEventAck(InputEventAckSource source,
26 blink::WebInputEvent::Type type,
24 InputEventAckState state, 27 InputEventAckState state,
25 const ui::LatencyInfo& latency, 28 const ui::LatencyInfo& latency,
26 uint32_t unique_touch_event_id) 29 uint32_t unique_touch_event_id)
27 : InputEventAck(type, state, latency, nullptr, unique_touch_event_id) {} 30 : InputEventAck(source,
31 type,
32 state,
33 latency,
34 nullptr,
35 unique_touch_event_id) {}
28 36
29 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, 37 InputEventAck::InputEventAck(InputEventAckSource source,
38 blink::WebInputEvent::Type type,
30 InputEventAckState state, 39 InputEventAckState state,
31 uint32_t unique_touch_event_id) 40 uint32_t unique_touch_event_id)
32 : InputEventAck(type, state, ui::LatencyInfo(), unique_touch_event_id) {} 41 : InputEventAck(source,
42 type,
43 state,
44 ui::LatencyInfo(),
45 unique_touch_event_id) {}
33 46
34 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, 47 InputEventAck::InputEventAck(InputEventAckSource source,
48 blink::WebInputEvent::Type type,
35 InputEventAckState state) 49 InputEventAckState state)
36 : InputEventAck(type, state, 0) { 50 : InputEventAck(source, type, state, 0) {}
37 }
38 51
39 InputEventAck::InputEventAck() 52 InputEventAck::InputEventAck()
40 : InputEventAck(blink::WebInputEvent::Undefined, 53 : InputEventAck(InputEventAckSource::UNKNOWN,
41 INPUT_EVENT_ACK_STATE_UNKNOWN) { 54 blink::WebInputEvent::Undefined,
42 } 55 INPUT_EVENT_ACK_STATE_UNKNOWN) {}
43 56
44 InputEventAck::~InputEventAck() { 57 InputEventAck::~InputEventAck() {
45 } 58 }
46 59
47 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/input_event_ack.h ('k') | content/common/input/input_event_ack_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698