| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
| 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void initMouseEvent(const AtomicString& type, bool canBubble, bool cancelabl
e, PassRefPtrWillBeRawPtr<AbstractView>, | 70 void initMouseEvent(const AtomicString& type, bool canBubble, bool cancelabl
e, PassRefPtrWillBeRawPtr<AbstractView>, |
| 71 int detail, int screenX, int screenY, int clientX, int clientY, | 71 int detail, int screenX, int screenY, int clientX, int clientY, |
| 72 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, | 72 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, |
| 73 unsigned short button, PassRefPtrWillBeRawPtr<EventTarget> relatedTarget
); | 73 unsigned short button, PassRefPtrWillBeRawPtr<EventTarget> relatedTarget
); |
| 74 | 74 |
| 75 // WinIE uses 1,4,2 for left/middle/right but not for click (just for moused
own/up, maybe others), | 75 // WinIE uses 1,4,2 for left/middle/right but not for click (just for moused
own/up, maybe others), |
| 76 // but we will match the standard DOM. | 76 // but we will match the standard DOM. |
| 77 unsigned short button() const { return m_button; } | 77 unsigned short button() const { return m_button; } |
| 78 bool buttonDown() const { return m_buttonDown; } | 78 bool buttonDown() const { return m_buttonDown; } |
| 79 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } | 79 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } |
| 80 EventTarget* relatedTarget(bool& isNull) const { isNull = !m_relatedTarget;
return m_relatedTarget.get(); } | |
| 81 void setRelatedTarget(PassRefPtrWillBeRawPtr<EventTarget> relatedTarget) { m
_relatedTarget = relatedTarget; } | 80 void setRelatedTarget(PassRefPtrWillBeRawPtr<EventTarget> relatedTarget) { m
_relatedTarget = relatedTarget; } |
| 82 | 81 |
| 83 Node* toElement() const; | 82 Node* toElement() const; |
| 84 Node* fromElement() const; | 83 Node* fromElement() const; |
| 85 | 84 |
| 86 DataTransfer* dataTransfer() const { return isDragEvent() ? m_dataTransfer.g
et() : 0; } | 85 DataTransfer* dataTransfer() const { return isDragEvent() ? m_dataTransfer.g
et() : 0; } |
| 87 | 86 |
| 88 virtual const AtomicString& interfaceName() const OVERRIDE; | 87 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 89 | 88 |
| 90 virtual bool isMouseEvent() const OVERRIDE; | 89 virtual bool isMouseEvent() const OVERRIDE; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; | 133 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; |
| 135 bool isSyntheticMouseEvent() const { return m_mouseEventType == SyntheticMou
seEvent; } | 134 bool isSyntheticMouseEvent() const { return m_mouseEventType == SyntheticMou
seEvent; } |
| 136 MouseEventType m_mouseEventType; | 135 MouseEventType m_mouseEventType; |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 DEFINE_EVENT_TYPE_CASTS(MouseEvent); | 138 DEFINE_EVENT_TYPE_CASTS(MouseEvent); |
| 140 | 139 |
| 141 } // namespace WebCore | 140 } // namespace WebCore |
| 142 | 141 |
| 143 #endif // MouseEvent_h | 142 #endif // MouseEvent_h |
| OLD | NEW |