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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // The set of non-stateful modifiers that specifically change the | 191 // The set of non-stateful modifiers that specifically change the |
192 // interpretation of the key being pressed. For example; IsLeft, | 192 // interpretation of the key being pressed. For example; IsLeft, |
193 // IsRight, IsComposing don't change the meaning of the key | 193 // IsRight, IsComposing don't change the meaning of the key |
194 // being pressed. NumLockOn, ScrollLockOn, CapsLockOn are stateful | 194 // being pressed. NumLockOn, ScrollLockOn, CapsLockOn are stateful |
195 // and don't indicate explicit depressed state. | 195 // and don't indicate explicit depressed state. |
196 KeyModifiers = | 196 KeyModifiers = |
197 SymbolKey | FnKey | AltGrKey | MetaKey | AltKey | ControlKey | ShiftKey, | 197 SymbolKey | FnKey | AltGrKey | MetaKey | AltKey | ControlKey | ShiftKey, |
198 }; | 198 }; |
199 | 199 |
200 // Indicates whether the browser needs to block on the ACK result for | 200 // Indicates whether the browser needs to block on the ACK result for |
201 // this event, and if not why note (for metrics/diagnostics purposes). | 201 // this event, and if not, why (for metrics/diagnostics purposes). |
202 // These values are direct mappings of the values in PlatformEvent | 202 // These values are direct mappings of the values in PlatformEvent |
203 // so the values can be cast between the enumerations. static_asserts | 203 // so the values can be cast between the enumerations. static_asserts |
204 // checking this are in web/WebInputEventConversion.cpp. | 204 // checking this are in web/WebInputEventConversion.cpp. |
205 enum DispatchType { | 205 enum DispatchType { |
206 // Event can be canceled. | 206 // Event can be canceled. |
207 Blocking, | 207 Blocking, |
208 // Event can not be canceled. | 208 // Event can not be canceled. |
209 EventNonBlocking, | 209 EventNonBlocking, |
210 // All listeners are passive; not cancelable. | 210 // All listeners are passive; not cancelable. |
211 ListenersNonBlockingPassive, | 211 ListenersNonBlockingPassive, |
212 // This value represents a state which would have normally blocking | 212 // This value represents a state which would have normally blocking |
213 // but was forced to be non-blocking during fling; not cancelable. | 213 // but was forced to be non-blocking during fling; not cancelable. |
214 ListenersForcedNonBlockingDueToFling, | 214 ListenersForcedNonBlockingDueToFling, |
| 215 // This value represents a state which would have normally blocking but |
| 216 // was forced to be non-blocking due to the main thread being |
| 217 // unresponsive. |
| 218 ListenersForcedNonBlockingDueToMainThreadResponsiveness, |
215 }; | 219 }; |
216 | 220 |
217 // The rail mode for a wheel event specifies the axis on which scrolling is | 221 // The rail mode for a wheel event specifies the axis on which scrolling is |
218 // expected to stick. If this axis is set to Free, then scrolling is not | 222 // expected to stick. If this axis is set to Free, then scrolling is not |
219 // stuck to any axis. | 223 // stuck to any axis. |
220 enum RailsMode { | 224 enum RailsMode { |
221 RailsModeFree = 0, | 225 RailsModeFree = 0, |
222 RailsModeHorizontal = 1, | 226 RailsModeHorizontal = 1, |
223 RailsModeVertical = 2, | 227 RailsModeVertical = 2, |
224 }; | 228 }; |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 dispatchedDuringFling(false), | 659 dispatchedDuringFling(false), |
656 touchStartOrFirstTouchMove(false), | 660 touchStartOrFirstTouchMove(false), |
657 uniqueTouchEventId(0) {} | 661 uniqueTouchEventId(0) {} |
658 }; | 662 }; |
659 | 663 |
660 #pragma pack(pop) | 664 #pragma pack(pop) |
661 | 665 |
662 } // namespace blink | 666 } // namespace blink |
663 | 667 |
664 #endif | 668 #endif |
OLD | NEW |