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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/input_event.h
diff --git a/content/common/input/input_event.h b/content/common/input/input_event.h
new file mode 100644
index 0000000000000000000000000000000000000000..e44da6964dd4e0fd17a2f1cafdd17330898796cf
--- /dev/null
+++ b/content/common/input/input_event.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_H_
+#define CONTENT_COMMON_INPUT_INPUT_EVENT_H_
+
+#include "content/common/content_export.h"
+#include "content/common/input/input_event_state.h"
+#include "content/common/input/input_event_type.h"
+#include "ipc/ipc_message.h"
+
+namespace content {
+
+class CONTENT_EXPORT InputEvent {
+ public:
+ InputEvent(int64 id, InputEventType type, const IPC::Message& message);
+ InputEvent();
+ ~InputEvent();
+
+ // The unique event id.
+ int64 id;
+
+ // Whether the event needs an ACK, or can create follow-up events.
+ InputEventType type;
+
+ // The pickled event payload.
+ 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
+
+ // The current state of the event. This may change as the event is handled
+ // by various parts of the input pipeline, both in the browser and renderer.
+ InputEventState state;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_
« 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