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

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

Powered by Google App Engine
This is Rietveld 408576698