OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008, The Android Open Source Project | 2 * Copyright 2008, The Android Open Source Project |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // DOM Touch implementation | 53 // DOM Touch implementation |
54 EventTarget* target() const { return m_target.get(); } | 54 EventTarget* target() const { return m_target.get(); } |
55 unsigned identifier() const { return m_identifier; } | 55 unsigned identifier() const { return m_identifier; } |
56 double clientX() const { return m_clientPos.x(); } | 56 double clientX() const { return m_clientPos.x(); } |
57 double clientY() const { return m_clientPos.y(); } | 57 double clientY() const { return m_clientPos.y(); } |
58 double screenX() const { return m_screenPos.x(); } | 58 double screenX() const { return m_screenPos.x(); } |
59 double screenY() const { return m_screenPos.y(); } | 59 double screenY() const { return m_screenPos.y(); } |
60 double pageX() const { return m_pagePos.x(); } | 60 double pageX() const { return m_pagePos.x(); } |
61 double pageY() const { return m_pagePos.y(); } | 61 double pageY() const { return m_pagePos.y(); } |
| 62 double radiusX() const { return m_radius.width(); } |
62 double webkitRadiusX() const { return m_radius.width(); } | 63 double webkitRadiusX() const { return m_radius.width(); } |
| 64 double radiusY() const { return m_radius.height(); } |
63 double webkitRadiusY() const { return m_radius.height(); } | 65 double webkitRadiusY() const { return m_radius.height(); } |
64 float webkitRotationAngle() const { return m_rotationAngle; } | 66 float webkitRotationAngle() const { return m_rotationAngle; } |
| 67 float force() const { return m_force; } |
65 float webkitForce() const { return m_force; } | 68 float webkitForce() const { return m_force; } |
66 | 69 |
67 // Blink-internal methods | 70 // Blink-internal methods |
68 const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; } | 71 const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; } |
69 const FloatPoint& screenLocation() const { return m_screenPos; } | 72 const FloatPoint& screenLocation() const { return m_screenPos; } |
70 PassRefPtrWillBeRawPtr<Touch> cloneWithNewTarget(EventTarget*) const; | 73 PassRefPtrWillBeRawPtr<Touch> cloneWithNewTarget(EventTarget*) const; |
71 | 74 |
72 void trace(Visitor*); | 75 void trace(Visitor*); |
73 | 76 |
74 private: | 77 private: |
(...skipping 19 matching lines...) Expand all Loading... |
94 float m_force; | 97 float m_force; |
95 // FIXME(rbyers): Shouldn't we be able to migrate callers to relying on scre
enPos, pagePos | 98 // FIXME(rbyers): Shouldn't we be able to migrate callers to relying on scre
enPos, pagePos |
96 // or clientPos? absoluteLocation appears to be the same as pagePos but with
out browser | 99 // or clientPos? absoluteLocation appears to be the same as pagePos but with
out browser |
97 // scale applied. | 100 // scale applied. |
98 LayoutPoint m_absoluteLocation; | 101 LayoutPoint m_absoluteLocation; |
99 }; | 102 }; |
100 | 103 |
101 } // namespace WebCore | 104 } // namespace WebCore |
102 | 105 |
103 #endif /* Touch_h */ | 106 #endif /* Touch_h */ |
OLD | NEW |