| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 : PlatformEvent(type), | 52 : PlatformEvent(type), |
| 53 m_clickCount(0), | 53 m_clickCount(0), |
| 54 m_synthesized(RealOrIndistinguishable) {} | 54 m_synthesized(RealOrIndistinguishable) {} |
| 55 | 55 |
| 56 PlatformMouseEvent(const IntPoint& position, | 56 PlatformMouseEvent(const IntPoint& position, |
| 57 const IntPoint& globalPosition, | 57 const IntPoint& globalPosition, |
| 58 WebPointerProperties::Button button, | 58 WebPointerProperties::Button button, |
| 59 EventType type, | 59 EventType type, |
| 60 int clickCount, | 60 int clickCount, |
| 61 Modifiers modifiers, | 61 Modifiers modifiers, |
| 62 double timestamp) | 62 TimeTicks timestamp) |
| 63 : PlatformEvent(type, modifiers, timestamp), | 63 : PlatformEvent(type, modifiers, timestamp), |
| 64 m_position(position), | 64 m_position(position), |
| 65 m_globalPosition(globalPosition), | 65 m_globalPosition(globalPosition), |
| 66 m_clickCount(clickCount), | 66 m_clickCount(clickCount), |
| 67 m_synthesized(RealOrIndistinguishable) { | 67 m_synthesized(RealOrIndistinguishable) { |
| 68 m_pointerProperties.button = button; | 68 m_pointerProperties.button = button; |
| 69 } | 69 } |
| 70 | 70 |
| 71 PlatformMouseEvent(const IntPoint& position, | 71 PlatformMouseEvent(const IntPoint& position, |
| 72 const IntPoint& globalPosition, | 72 const IntPoint& globalPosition, |
| 73 WebPointerProperties::Button button, | 73 WebPointerProperties::Button button, |
| 74 EventType type, | 74 EventType type, |
| 75 int clickCount, | 75 int clickCount, |
| 76 Modifiers modifiers, | 76 Modifiers modifiers, |
| 77 SyntheticEventType synthesized, | 77 SyntheticEventType synthesized, |
| 78 double timestamp, | 78 TimeTicks timestamp, |
| 79 WebPointerProperties::PointerType pointerType = | 79 WebPointerProperties::PointerType pointerType = |
| 80 WebPointerProperties::PointerType::Unknown) | 80 WebPointerProperties::PointerType::Unknown) |
| 81 : PlatformEvent(type, modifiers, timestamp), | 81 : PlatformEvent(type, modifiers, timestamp), |
| 82 m_position(position), | 82 m_position(position), |
| 83 m_globalPosition(globalPosition), | 83 m_globalPosition(globalPosition), |
| 84 m_clickCount(clickCount), | 84 m_clickCount(clickCount), |
| 85 m_synthesized(synthesized) { | 85 m_synthesized(synthesized) { |
| 86 m_pointerProperties.pointerType = pointerType; | 86 m_pointerProperties.pointerType = pointerType; |
| 87 m_pointerProperties.button = button; | 87 m_pointerProperties.button = button; |
| 88 } | 88 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 118 // For canvas hit region. | 118 // For canvas hit region. |
| 119 // TODO(zino): This might make more sense to put in HitTestResults or | 119 // TODO(zino): This might make more sense to put in HitTestResults or |
| 120 // some other part of MouseEventWithHitTestResults, but for now it's | 120 // some other part of MouseEventWithHitTestResults, but for now it's |
| 121 // most convenient to stash it here. Please see: http://crbug.com/592947. | 121 // most convenient to stash it here. Please see: http://crbug.com/592947. |
| 122 String m_region; | 122 String m_region; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| 126 | 126 |
| 127 #endif // PlatformMouseEvent_h | 127 #endif // PlatformMouseEvent_h |
| OLD | NEW |