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

Unified Diff: content/common/input/input_event_state.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: 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 side-by-side diff with in-line comments
Download patch
Index: content/common/input/input_event_state.h
diff --git a/content/common/input/input_event_state.h b/content/common/input/input_event_state.h
new file mode 100644
index 0000000000000000000000000000000000000000..ba285ac973e07d318c56c9e1207a428756633da3
--- /dev/null
+++ b/content/common/input/input_event_state.h
@@ -0,0 +1,29 @@
+// 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_STATE_H_
+#define CONTENT_COMMON_INPUT_INPUT_EVENT_STATE_H_
+
+namespace content {
+
+// State of input events as they are handled and passed between the browser and
+// renderer.
+enum InputEventState {
nduca 2013/08/15 01:22:46 InputEventDisposition or InputEventHandlingResult?
jdduke (slow) 2013/08/15 15:23:45 Hmm... Disposition sounds good.
+ INPUT_EVENT_UNHANDLED,
+
+ INPUT_EVENT_IMPL_THREAD_ABSORBED,
+ INPUT_EVENT_IMPL_THREAD_NO_CONSUMER_EXISTS,
+ INPUT_EVENT_IMPL_THREAD_BOUNCE_TO_MAIN,
+ INPUT_EVENT_IMPL_THREAD_COULD_NOT_DELIVER,
+
+ INPUT_EVENT_MAIN_THREAD_ABSORBED,
+ INPUT_EVENT_MAIN_THREAD_PREVENT_DEFAULTED,
+ INPUT_EVENT_MAIN_THREAD_NOT_PREVENT_DEFAULTED,
+ INPUT_EVENT_MAIN_THREAD_NO_HANDLER_EXISTS,
+ INPUT_EVENT_MAIN_THREAD_COULD_NOT_DELIVER,
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_INPUT_INPUT_EVENT_STATE_H_

Powered by Google App Engine
This is Rietveld 408576698