| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "wtf/Noncopyable.h" | 30 #include "wtf/Noncopyable.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class PlatformEvent { | 34 class PlatformEvent { |
| 35 DISALLOW_NEW(); | 35 DISALLOW_NEW(); |
| 36 public: | 36 public: |
| 37 enum EventType { | 37 enum EventType { |
| 38 NoType = 0, | 38 NoType = 0, |
| 39 | 39 |
| 40 // PlatformKeyboardEvent | |
| 41 KeyDown, | |
| 42 KeyUp, | |
| 43 RawKeyDown, | |
| 44 Char, | |
| 45 | |
| 46 // PlatformMouseEvent | 40 // PlatformMouseEvent |
| 47 MouseMoved, | 41 MouseMoved, |
| 48 MousePressed, | 42 MousePressed, |
| 49 MouseReleased, | 43 MouseReleased, |
| 50 MouseScroll, | 44 MouseScroll, |
| 51 | 45 |
| 52 // PlatformWheelEvent | 46 // PlatformWheelEvent |
| 53 Wheel, | 47 Wheel, |
| 54 | 48 |
| 55 // PlatformGestureEvent | 49 // PlatformGestureEvent |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 168 } |
| 175 | 169 |
| 176 unsigned m_type; | 170 unsigned m_type; |
| 177 unsigned m_modifiers; | 171 unsigned m_modifiers; |
| 178 double m_timestamp; | 172 double m_timestamp; |
| 179 }; | 173 }; |
| 180 | 174 |
| 181 } // namespace blink | 175 } // namespace blink |
| 182 | 176 |
| 183 #endif // PlatformEvent_h | 177 #endif // PlatformEvent_h |
| OLD | NEW |