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