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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 int clientY; | 42 int clientY; |
43 bool ctrlKey; | 43 bool ctrlKey; |
44 bool altKey; | 44 bool altKey; |
45 bool shiftKey; | 45 bool shiftKey; |
46 bool metaKey; | 46 bool metaKey; |
47 unsigned short button; | 47 unsigned short button; |
48 RefPtrWillBeMember<EventTarget> relatedTarget; | 48 RefPtrWillBeMember<EventTarget> relatedTarget; |
49 }; | 49 }; |
50 | 50 |
51 class MouseEvent : public MouseRelatedEvent { | 51 class MouseEvent : public MouseRelatedEvent { |
| 52 DEFINE_WRAPPERTYPEINFO(); |
52 public: | 53 public: |
53 static PassRefPtrWillBeRawPtr<MouseEvent> create() | 54 static PassRefPtrWillBeRawPtr<MouseEvent> create() |
54 { | 55 { |
55 return adoptRefWillBeNoop(new MouseEvent); | 56 return adoptRefWillBeNoop(new MouseEvent); |
56 } | 57 } |
57 | 58 |
58 static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& type, b
ool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>, | 59 static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& type, b
ool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>, |
59 int detail, int screenX, int screenY, int pageX, int pageY, | 60 int detail, int screenX, int screenY, int pageX, int pageY, |
60 int movementX, int movementY, | 61 int movementX, int movementY, |
61 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short b
utton, | 62 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short b
utton, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; | 139 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; |
139 bool isSyntheticMouseEvent() const { return m_mouseEventType == SyntheticMou
seEvent; } | 140 bool isSyntheticMouseEvent() const { return m_mouseEventType == SyntheticMou
seEvent; } |
140 MouseEventType m_mouseEventType; | 141 MouseEventType m_mouseEventType; |
141 }; | 142 }; |
142 | 143 |
143 DEFINE_EVENT_TYPE_CASTS(MouseEvent); | 144 DEFINE_EVENT_TYPE_CASTS(MouseEvent); |
144 | 145 |
145 } // namespace blink | 146 } // namespace blink |
146 | 147 |
147 #endif // MouseEvent_h | 148 #endif // MouseEvent_h |
OLD | NEW |