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

Side by Side Diff: content/common/input/input_event_disposition.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: InputEvent with payload Created 7 years, 3 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 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_DISPOSITION_H_
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_DISPOSITION_H_
7
8 #include <vector>
9
10 #include "content/common/content_export.h"
11 #include "content/port/common/input_event_ack_state.h"
12
13 namespace content {
14
15 // Disposition of input events as they are handled and passed between the
16 // browser and renderer.
17 enum InputEventDisposition {
18 INPUT_EVENT_UNHANDLED,
19 INPUT_EVENT_COULD_NOT_DELIVER,
20
21 INPUT_EVENT_IMPL_THREAD_CONSUMED,
22 INPUT_EVENT_IMPL_THREAD_BOUNCE_TO_MAIN,
23 INPUT_EVENT_IMPL_THREAD_NO_CONSUMER_EXISTS,
24
25 INPUT_EVENT_MAIN_THREAD_CONSUMED,
26 INPUT_EVENT_MAIN_THREAD_PREVENT_DEFAULTED,
27 INPUT_EVENT_MAIN_THREAD_NOT_PREVENT_DEFAULTED,
28 INPUT_EVENT_MAIN_THREAD_NO_CONSUMER_EXISTS
29 };
30 typedef std::vector<InputEventDisposition> InputEventDispositions;
31
32 InputEventDisposition CONTENT_EXPORT ToDisposition(InputEventAckState ack,
33 bool main_thread,
34 bool prevent_default);
35 InputEventAckState CONTENT_EXPORT ToAckState(InputEventDisposition disposition);
36
37 } // namespace content
38
39 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_DISPOSITION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698