| 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 28 matching lines...) Expand all Loading... |
| 39 // Real mouse input events or synthetic events that behave just like rea
l events | 39 // Real mouse input events or synthetic events that behave just like rea
l events |
| 40 RealOrIndistinguishable, | 40 RealOrIndistinguishable, |
| 41 // Synthetic mouse events derived from touch input | 41 // Synthetic mouse events derived from touch input |
| 42 FromTouch, | 42 FromTouch, |
| 43 // Synthetic mouse events generated without a position, for example thos
e generated | 43 // Synthetic mouse events generated without a position, for example thos
e generated |
| 44 // from keyboard input. | 44 // from keyboard input. |
| 45 Positionless, | 45 Positionless, |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 PlatformMouseEvent() | 48 PlatformMouseEvent() |
| 49 : PlatformEvent(PlatformEvent::MouseMoved) | 49 : PlatformMouseEvent(PlatformEvent::MouseMoved) |
| 50 { |
| 51 } |
| 52 |
| 53 explicit PlatformMouseEvent(EventType type) |
| 54 : PlatformEvent(type) |
| 50 , m_clickCount(0) | 55 , m_clickCount(0) |
| 51 , m_synthesized(RealOrIndistinguishable) | 56 , m_synthesized(RealOrIndistinguishable) |
| 52 { | 57 { |
| 53 } | 58 } |
| 54 | 59 |
| 55 PlatformMouseEvent(const IntPoint& position, const IntPoint& globalPosition,
WebPointerProperties::Button button, EventType type, int clickCount, Modifiers
modifiers, double timestamp) | 60 PlatformMouseEvent(const IntPoint& position, const IntPoint& globalPosition,
WebPointerProperties::Button button, EventType type, int clickCount, Modifiers
modifiers, double timestamp) |
| 56 : PlatformEvent(type, modifiers, timestamp) | 61 : PlatformEvent(type, modifiers, timestamp) |
| 57 , m_position(position) | 62 , m_position(position) |
| 58 , m_globalPosition(globalPosition) | 63 , m_globalPosition(globalPosition) |
| 59 , m_clickCount(clickCount) | 64 , m_clickCount(clickCount) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // For canvas hit region. | 107 // For canvas hit region. |
| 103 // TODO(zino): This might make more sense to put in HitTestResults or | 108 // TODO(zino): This might make more sense to put in HitTestResults or |
| 104 // some other part of MouseEventWithHitTestResults, but for now it's | 109 // some other part of MouseEventWithHitTestResults, but for now it's |
| 105 // most convenient to stash it here. Please see: http://crbug.com/592947. | 110 // most convenient to stash it here. Please see: http://crbug.com/592947. |
| 106 String m_region; | 111 String m_region; |
| 107 }; | 112 }; |
| 108 | 113 |
| 109 } // namespace blink | 114 } // namespace blink |
| 110 | 115 |
| 111 #endif // PlatformMouseEvent_h | 116 #endif // PlatformMouseEvent_h |
| OLD | NEW |