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