OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 IsComposing = 1 << 14, | 183 IsComposing = 1 << 14, |
184 | 184 |
185 AltGrKey = 1 << 15, | 185 AltGrKey = 1 << 15, |
186 FnKey = 1 << 16, | 186 FnKey = 1 << 16, |
187 SymbolKey = 1 << 17, | 187 SymbolKey = 1 << 17, |
188 | 188 |
189 ScrollLockOn = 1 << 18, | 189 ScrollLockOn = 1 << 18, |
190 }; | 190 }; |
191 | 191 |
192 // Indicates whether the browser needs to block on the ACK result for | 192 // Indicates whether the browser needs to block on the ACK result for |
193 // this event, and if not why note (for metrics/diagnostics purposes). | 193 // this event, and if not, why (for metrics/diagnostics purposes). |
194 // These values are direct mappings of the values in PlatformEvent | 194 // These values are direct mappings of the values in PlatformEvent |
195 // so the values can be cast between the enumerations. static_asserts | 195 // so the values can be cast between the enumerations. static_asserts |
196 // checking this are in web/WebInputEventConversion.cpp. | 196 // checking this are in web/WebInputEventConversion.cpp. |
197 enum DispatchType { | 197 enum DispatchType { |
198 // Event can be canceled. | 198 // Event can be canceled. |
199 Blocking, | 199 Blocking, |
200 // Event can not be canceled. | 200 // Event can not be canceled. |
201 EventNonBlocking, | 201 EventNonBlocking, |
202 // All listeners are passive; not cancelable. | 202 // All listeners are passive; not cancelable. |
203 ListenersNonBlockingPassive, | 203 ListenersNonBlockingPassive, |
204 // This value represents a state which would have normally blocking | 204 // This value represents a state which would have normally blocking |
205 // but was forced to be non-blocking during fling; not cancelable. | 205 // but was forced to be non-blocking during fling; not cancelable. |
206 ListenersForcedNonBlockingDueToFling, | 206 ListenersForcedNonBlockingDueToFling, |
| 207 // This value represents a state which would have normally blocking but |
| 208 // was forced to be non-blocking due to the main thread being |
| 209 // unresponsive. |
| 210 ListenersForcedNonBlockingDueToMainThreadResponsiveness, |
207 }; | 211 }; |
208 | 212 |
209 // The rail mode for a wheel event specifies the axis on which scrolling is | 213 // The rail mode for a wheel event specifies the axis on which scrolling is |
210 // expected to stick. If this axis is set to Free, then scrolling is not | 214 // expected to stick. If this axis is set to Free, then scrolling is not |
211 // stuck to any axis. | 215 // stuck to any axis. |
212 enum RailsMode { | 216 enum RailsMode { |
213 RailsModeFree = 0, | 217 RailsModeFree = 0, |
214 RailsModeHorizontal = 1, | 218 RailsModeHorizontal = 1, |
215 RailsModeVertical = 2, | 219 RailsModeVertical = 2, |
216 }; | 220 }; |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 , uniqueTouchEventId(0) | 645 , uniqueTouchEventId(0) |
642 { | 646 { |
643 } | 647 } |
644 }; | 648 }; |
645 | 649 |
646 #pragma pack(pop) | 650 #pragma pack(pop) |
647 | 651 |
648 } // namespace blink | 652 } // namespace blink |
649 | 653 |
650 #endif | 654 #endif |
OLD | NEW |