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

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

Issue 19624005: Add InputEvent and EventPacket types for batched input delivery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate InputEvent types for events based on WebKit::WebInputEvent Created 7 years, 4 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 (c) 2013 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/event_packet_test.h"
6
7 EventPacket::EventPacket() {}
8
9 EventPacket::~EventPacket() {}
10
11 void EventPacket::AddEvent(scoped_ptr<InputEvent> event,
12 InputEventState state) {
13 DCHECK(events.size() == states.size());
14 events.push_back(event.release());
15 states.push_back(state);
16 }
17
18 } // namespace content
19
20 #endif // CONTENT_COMMON_INPUT_EVENT_PACKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698