| 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 Apple Computer, Inc. | 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual int pageX() const OVERRIDE FINAL; | 50 virtual int pageX() const OVERRIDE FINAL; |
| 51 virtual int pageY() const OVERRIDE FINAL; | 51 virtual int pageY() const OVERRIDE FINAL; |
| 52 int x() const; | 52 int x() const; |
| 53 int y() const; | 53 int y() const; |
| 54 | 54 |
| 55 // Page point in "absolute" coordinates (i.e. post-zoomed, page-relative
coords, | 55 // Page point in "absolute" coordinates (i.e. post-zoomed, page-relative
coords, |
| 56 // usable with RenderObject::absoluteToLocal). | 56 // usable with RenderObject::absoluteToLocal). |
| 57 const LayoutPoint& absoluteLocation() const { return m_absoluteLocation;
} | 57 const LayoutPoint& absoluteLocation() const { return m_absoluteLocation;
} |
| 58 void setAbsoluteLocation(const LayoutPoint& p) { m_absoluteLocation = p;
} | 58 void setAbsoluteLocation(const LayoutPoint& p) { m_absoluteLocation = p;
} |
| 59 | 59 |
| 60 virtual void trace(Visitor*) OVERRIDE; |
| 61 |
| 60 protected: | 62 protected: |
| 61 MouseRelatedEvent(); | 63 MouseRelatedEvent(); |
| 62 MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancela
ble, PassRefPtr<AbstractView>, | 64 MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancela
ble, PassRefPtr<AbstractView>, |
| 63 int detail, const IntPoint& screenLocation, const IntP
oint& windowLocation, | 65 int detail, const IntPoint& screenLocation, const IntP
oint& windowLocation, |
| 64 const IntPoint& movementDelta, | 66 const IntPoint& movementDelta, |
| 65 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey
, bool isSimulated = false); | 67 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey
, bool isSimulated = false); |
| 66 | 68 |
| 67 void initCoordinates(); | 69 void initCoordinates(); |
| 68 void initCoordinates(const LayoutPoint& clientLocation); | 70 void initCoordinates(const LayoutPoint& clientLocation); |
| 69 virtual void receivedTarget() OVERRIDE FINAL; | 71 virtual void receivedTarget() OVERRIDE FINAL; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 81 LayoutPoint m_layerLocation; | 83 LayoutPoint m_layerLocation; |
| 82 LayoutPoint m_offsetLocation; | 84 LayoutPoint m_offsetLocation; |
| 83 LayoutPoint m_absoluteLocation; | 85 LayoutPoint m_absoluteLocation; |
| 84 bool m_isSimulated; | 86 bool m_isSimulated; |
| 85 bool m_hasCachedRelativePosition; | 87 bool m_hasCachedRelativePosition; |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 } // namespace WebCore | 90 } // namespace WebCore |
| 89 | 91 |
| 90 #endif // MouseRelatedEvent_h | 92 #endif // MouseRelatedEvent_h |
| OLD | NEW |