| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2009 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef PlatformMouseEvent_h | 26 #ifndef PlatformMouseEvent_h |
| 27 #define PlatformMouseEvent_h | 27 #define PlatformMouseEvent_h |
| 28 | 28 |
| 29 #include "platform/PlatformEvent.h" | 29 #include "platform/PlatformEvent.h" |
| 30 #include "platform/geometry/IntPoint.h" | 30 #include "platform/geometry/IntPoint.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace blink { |
| 33 | 33 |
| 34 // These button numbers match the ones used in the DOM API, 0 through 2, except
for NoButton which isn't specified. | 34 // These button numbers match the ones used in the DOM API, 0 through 2, except
for NoButton which isn't specified. |
| 35 enum MouseButton { NoButton = -1, LeftButton, MiddleButton, RightButton }; | 35 enum MouseButton { NoButton = -1, LeftButton, MiddleButton, RightButton }; |
| 36 | 36 |
| 37 class PlatformMouseEvent : public PlatformEvent { | 37 class PlatformMouseEvent : public PlatformEvent { |
| 38 public: | 38 public: |
| 39 enum SyntheticEventType { | 39 enum SyntheticEventType { |
| 40 NotFromTouch, | 40 NotFromTouch, |
| 41 FromTouch, | 41 FromTouch, |
| 42 }; | 42 }; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 protected: | 95 protected: |
| 96 IntPoint m_position; | 96 IntPoint m_position; |
| 97 IntPoint m_globalPosition; | 97 IntPoint m_globalPosition; |
| 98 IntPoint m_movementDelta; | 98 IntPoint m_movementDelta; |
| 99 MouseButton m_button; | 99 MouseButton m_button; |
| 100 int m_clickCount; | 100 int m_clickCount; |
| 101 SyntheticEventType m_synthesized; | 101 SyntheticEventType m_synthesized; |
| 102 unsigned m_modifierFlags; | 102 unsigned m_modifierFlags; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace WebCore | 105 } // namespace blink |
| 106 | 106 |
| 107 #endif // PlatformMouseEvent_h | 107 #endif // PlatformMouseEvent_h |
| OLD | NEW |