| 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, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 m_relatedTarget = relatedTarget; | 153 m_relatedTarget = relatedTarget; |
| 154 | 154 |
| 155 initCoordinates(IntPoint(clientX, clientY)); | 155 initCoordinates(IntPoint(clientX, clientY)); |
| 156 | 156 |
| 157 // FIXME: m_isSimulated is not set to false here. | 157 // FIXME: m_isSimulated is not set to false here. |
| 158 // FIXME: m_clipboard is not set to 0 here. | 158 // FIXME: m_clipboard is not set to 0 here. |
| 159 } | 159 } |
| 160 | 160 |
| 161 const AtomicString& MouseEvent::interfaceName() const | 161 const AtomicString& MouseEvent::interfaceName() const |
| 162 { | 162 { |
| 163 return eventNames().interfaceForMouseEvent; | 163 return EventNames::MouseEvent; |
| 164 } | 164 } |
| 165 | 165 |
| 166 bool MouseEvent::isMouseEvent() const | 166 bool MouseEvent::isMouseEvent() const |
| 167 { | 167 { |
| 168 return true; | 168 return true; |
| 169 } | 169 } |
| 170 | 170 |
| 171 bool MouseEvent::isDragEvent() const | 171 bool MouseEvent::isDragEvent() const |
| 172 { | 172 { |
| 173 const AtomicString& t = type(); | 173 const AtomicString& t = type(); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 event()->button(), relatedTarget); | 281 event()->button(), relatedTarget); |
| 282 if (event()->defaultHandled()) | 282 if (event()->defaultHandled()) |
| 283 doubleClickEvent->setDefaultHandled(); | 283 doubleClickEvent->setDefaultHandled(); |
| 284 EventDispatcher::dispatchEvent(dispatcher->node(), MouseEventDispatchMediato
r::create(doubleClickEvent)); | 284 EventDispatcher::dispatchEvent(dispatcher->node(), MouseEventDispatchMediato
r::create(doubleClickEvent)); |
| 285 if (doubleClickEvent->defaultHandled() || doubleClickEvent->defaultPrevented
()) | 285 if (doubleClickEvent->defaultHandled() || doubleClickEvent->defaultPrevented
()) |
| 286 return false; | 286 return false; |
| 287 return !swallowEvent; | 287 return !swallowEvent; |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace WebCore | 290 } // namespace WebCore |
| OLD | NEW |