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