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

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

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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>
8
7 namespace content { 9 namespace content {
8 10
9 InputEventAck::InputEventAck( 11 InputEventAck::InputEventAck(
10 blink::WebInputEvent::Type type, 12 blink::WebInputEvent::Type type,
11 InputEventAckState state, 13 InputEventAckState state,
12 const ui::LatencyInfo& latency, 14 const ui::LatencyInfo& latency,
13 scoped_ptr<content::DidOverscrollParams> overscroll, 15 scoped_ptr<content::DidOverscrollParams> overscroll,
14 uint32_t unique_touch_event_id) 16 uint32_t unique_touch_event_id)
15 : type(type), 17 : type(type),
16 state(state), 18 state(state),
17 latency(latency), 19 latency(latency),
18 overscroll(overscroll.Pass()), 20 overscroll(std::move(overscroll)),
19 unique_touch_event_id(unique_touch_event_id) {} 21 unique_touch_event_id(unique_touch_event_id) {}
20 22
21 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, 23 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
22 InputEventAckState state, 24 InputEventAckState state,
23 const ui::LatencyInfo& latency, 25 const ui::LatencyInfo& latency,
24 uint32_t unique_touch_event_id) 26 uint32_t unique_touch_event_id)
25 : InputEventAck(type, state, latency, nullptr, unique_touch_event_id) {} 27 : InputEventAck(type, state, latency, nullptr, unique_touch_event_id) {}
26 28
27 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, 29 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
28 InputEventAckState state, 30 InputEventAckState state,
29 uint32_t unique_touch_event_id) 31 uint32_t unique_touch_event_id)
30 : InputEventAck(type, state, ui::LatencyInfo(), unique_touch_event_id) {} 32 : InputEventAck(type, state, ui::LatencyInfo(), unique_touch_event_id) {}
31 33
32 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, 34 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
33 InputEventAckState state) 35 InputEventAckState state)
34 : InputEventAck(type, state, 0) { 36 : InputEventAck(type, state, 0) {
35 } 37 }
36 38
37 InputEventAck::InputEventAck() 39 InputEventAck::InputEventAck()
38 : InputEventAck(blink::WebInputEvent::Undefined, 40 : InputEventAck(blink::WebInputEvent::Undefined,
39 INPUT_EVENT_ACK_STATE_UNKNOWN) { 41 INPUT_EVENT_ACK_STATE_UNKNOWN) {
40 } 42 }
41 43
42 InputEventAck::~InputEventAck() { 44 InputEventAck::~InputEventAck() {
43 } 45 }
44 46
45 } // namespace content 47 } // namespace content
OLDNEW
« no previous file with comments | « content/common/host_shared_bitmap_manager.cc ('k') | content/common/input/input_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698