OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ | 5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ |
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ | 6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 enum InputEventDispatchType { | 10 enum InputEventDispatchType { |
11 // Dispatch a blocking event. Sender is waiting on an ACK. | 11 // Dispatch a blocking event. Sender is waiting on an ACK. |
12 DISPATCH_TYPE_BLOCKING, | 12 DISPATCH_TYPE_BLOCKING, |
13 // Dispatch a blocking event and notify main thread as well. This type | 13 // Dispatch a blocking event and notify main thread as well. This type |
14 // should only be sent from the compositor to main thread. | 14 // should only be sent from the compositor to main thread. |
15 DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN, | 15 DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN, |
16 // Dispatch a non-blocking event. Sender will not receive an ACK. | 16 // Dispatch a non-blocking event. Sender will not receive an ACK. |
17 DISPATCH_TYPE_NON_BLOCKING, | 17 DISPATCH_TYPE_NON_BLOCKING, |
18 // Dispatch a non-blocking event and notify main thread as well. This type | 18 DISPATCH_TYPE_MAX = DISPATCH_TYPE_NON_BLOCKING |
19 // should only be sent from the compositor to main thread. | |
20 DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN, | |
21 DISPATCH_TYPE_MAX = DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN | |
22 }; | 19 }; |
23 | 20 |
24 } // namespace content | 21 } // namespace content |
25 | 22 |
26 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ | 23 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ |
OLD | NEW |