| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // 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 // TODO(https://crbug.com/652018): Fix Java enum generation to not get |
| 197 SymbolKey | FnKey | AltGrKey | MetaKey | AltKey | ControlKey | ShiftKey | 197 // confused by correctly formatted code. |
| 198 // clang-format off |
| 199 KeyModifiers = SymbolKey | FnKey | AltGrKey | MetaKey | AltKey | ControlKey
| ShiftKey |
| 200 // clang-format on |
| 198 }; | 201 }; |
| 199 | 202 |
| 200 // Indicates whether the browser needs to block on the ACK result for | 203 // Indicates whether the browser needs to block on the ACK result for |
| 201 // this event, and if not why note (for metrics/diagnostics purposes). | 204 // this event, and if not why note (for metrics/diagnostics purposes). |
| 202 // These values are direct mappings of the values in PlatformEvent | 205 // These values are direct mappings of the values in PlatformEvent |
| 203 // so the values can be cast between the enumerations. static_asserts | 206 // so the values can be cast between the enumerations. static_asserts |
| 204 // checking this are in web/WebInputEventConversion.cpp. | 207 // checking this are in web/WebInputEventConversion.cpp. |
| 205 enum DispatchType { | 208 enum DispatchType { |
| 206 // Event can be canceled. | 209 // Event can be canceled. |
| 207 Blocking, | 210 Blocking, |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 dispatchedDuringFling(false), | 656 dispatchedDuringFling(false), |
| 654 touchStartOrFirstTouchMove(false), | 657 touchStartOrFirstTouchMove(false), |
| 655 uniqueTouchEventId(0) {} | 658 uniqueTouchEventId(0) {} |
| 656 }; | 659 }; |
| 657 | 660 |
| 658 #pragma pack(pop) | 661 #pragma pack(pop) |
| 659 | 662 |
| 660 } // namespace blink | 663 } // namespace blink |
| 661 | 664 |
| 662 #endif | 665 #endif |
| OLD | NEW |