OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 WebInputEventResult_h | 5 #ifndef WebInputEventResult_h |
6 #define WebInputEventResult_h | 6 #define WebInputEventResult_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 enum class WebInputEventResult { | 10 enum class WebInputEventResult { |
11 // Event was not consumed by application or system. | 11 // Event was not consumed by application or system. |
12 NotHandled, | 12 NotHandled, |
13 // Event was consumed but suppressed before dispatched to application. | 13 // Event was consumed but suppressed before dispatched to application. |
14 HandledSuppressed, | 14 HandledSuppressed, |
15 // Event was consumed by application itself; ie. a script handler calling prev
entDefault. | 15 // Event was consumed by application itself; ie. a script handler calling |
| 16 // preventDefault. |
16 HandledApplication, | 17 HandledApplication, |
17 // Event was consumed by the system; ie. executing the default action. | 18 // Event was consumed by the system; ie. executing the default action. |
18 HandledSystem, | 19 HandledSystem, |
19 }; | 20 }; |
20 | 21 |
21 } // namespace blink | 22 } // namespace blink |
22 | 23 |
23 #endif // WebInputEventResult_h | 24 #endif // WebInputEventResult_h |
OLD | NEW |