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

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: Cleanup 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/generic_input_event.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..db8115dccde0d33c67290e37ce065f90eff4b00d
--- /dev/null
+++ b/content/common/input/input_event.h
@@ -0,0 +1,44 @@
+// 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 "base/basictypes.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Base class for input types delivered to the renderer.
+class CONTENT_EXPORT InputEvent {
+ public:
+ // Used for serialization.
+ enum Type {
+ GENERIC,
nduca 2013/08/27 18:45:36 In your explanation to me of this, you described i
+ WEB_PLATFORM,
+ };
+
+ // Informs event response.
+ enum AckType {
nduca 2013/08/27 22:16:07 DispositionRequirement
+ ACK_NOT_REQUIRED,
+ ACK_REQUIRED,
+ ACK_CAN_CREATE_FOLLOWUP_EVENTS
nduca 2013/08/27 22:16:07 ACK_REQUIRED_AND_CAN_CREATE_FOLLOWUP
+ };
+
+ virtual ~InputEvent();
+
+ Type type;
nduca 2013/08/27 18:45:36 This class still feels very structy/tightly-couple
+ AckType ack_type;
nduca 2013/08/27 22:16:07 AckType GetDispoitionRequirements() const = 0;
+ int64 id;
+
+ protected:
+ InputEvent(Type type, AckType ack_type, int64 id);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InputEvent);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_
« no previous file with comments | « content/common/input/generic_input_event.cc ('k') | content/common/input/input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698