| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 kBackButtonDown = 1 << 20, | 234 kBackButtonDown = 1 << 20, |
| 235 kForwardButtonDown = 1 << 21, | 235 kForwardButtonDown = 1 << 21, |
| 236 | 236 |
| 237 // The set of non-stateful modifiers that specifically change the | 237 // The set of non-stateful modifiers that specifically change the |
| 238 // interpretation of the key being pressed. For example; IsLeft, | 238 // interpretation of the key being pressed. For example; IsLeft, |
| 239 // IsRight, IsComposing don't change the meaning of the key | 239 // IsRight, IsComposing don't change the meaning of the key |
| 240 // being pressed. NumLockOn, ScrollLockOn, CapsLockOn are stateful | 240 // being pressed. NumLockOn, ScrollLockOn, CapsLockOn are stateful |
| 241 // and don't indicate explicit depressed state. | 241 // and don't indicate explicit depressed state. |
| 242 kKeyModifiers = kSymbolKey | kFnKey | kAltGrKey | kMetaKey | kAltKey | | 242 kKeyModifiers = kSymbolKey | kFnKey | kAltGrKey | kMetaKey | kAltKey | |
| 243 kControlKey | | 243 kControlKey | kShiftKey, |
| 244 kShiftKey, | |
| 245 kNoModifiers = 0, | 244 kNoModifiers = 0, |
| 246 }; | 245 }; |
| 247 | 246 |
| 248 // Indicates whether the browser needs to block on the ACK result for | 247 // Indicates whether the browser needs to block on the ACK result for |
| 249 // this event, and if not, why (for metrics/diagnostics purposes). | 248 // this event, and if not, why (for metrics/diagnostics purposes). |
| 250 // These values are direct mappings of the values in PlatformEvent | 249 // These values are direct mappings of the values in PlatformEvent |
| 251 // so the values can be cast between the enumerations. static_asserts | 250 // so the values can be cast between the enumerations. static_asserts |
| 252 // checking this are in web/WebInputEventConversion.cpp. | 251 // checking this are in web/WebInputEventConversion.cpp. |
| 253 enum DispatchType { | 252 enum DispatchType { |
| 254 // Event can be canceled. | 253 // Event can be canceled. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 unsigned size_; // The size of this structure, for serialization. | 429 unsigned size_; // The size of this structure, for serialization. |
| 431 Type type_; | 430 Type type_; |
| 432 int modifiers_; | 431 int modifiers_; |
| 433 }; | 432 }; |
| 434 | 433 |
| 435 #pragma pack(pop) | 434 #pragma pack(pop) |
| 436 | 435 |
| 437 } // namespace blink | 436 } // namespace blink |
| 438 | 437 |
| 439 #endif | 438 #endif |
| OLD | NEW |