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

Side by Side Diff: content/common/input/input_event.h

Issue 19624005: Add InputEvent and EventPacket types for batched input delivery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « content/common/input/event_packet.cc ('k') | content/common/input/input_event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_H_
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_H_
7
8 #include "content/common/content_export.h"
9 #include "content/common/input/input_event_state.h"
10 #include "content/common/input/input_event_type.h"
11 #include "ipc/ipc_message.h"
12
13 namespace content {
14
15 class CONTENT_EXPORT InputEvent {
16 public:
17 InputEvent(int64 id, InputEventType type, const IPC::Message& message);
18 InputEvent();
19 ~InputEvent();
20
21 // The unique event id.
22 int64 id;
23
24 // Whether the event needs an ACK, or can create follow-up events.
25 InputEventType type;
26
27 // The pickled event payload.
28 IPC::Message message;
nduca 2013/08/12 23:32:40 also why's it pickled? I would have expected this
jdduke (slow) 2013/08/12 23:45:27 Well, I'm considering doing away with this complet
29
30 // The current state of the event. This may change as the event is handled
31 // by various parts of the input pipeline, both in the browser and renderer.
32 InputEventState state;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_
OLDNEW
« no previous file with comments | « content/common/input/event_packet.cc ('k') | content/common/input/input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698