| 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 22 matching lines...) Expand all Loading... |
| 33 #include "platform/geometry/LayoutPoint.h" | 33 #include "platform/geometry/LayoutPoint.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class LocalFrame; | 41 class LocalFrame; |
| 42 | 42 |
| 43 class Touch FINAL : public RefCountedWillBeGarbageCollected<Touch>, public Scrip
tWrappable { | 43 class Touch final : public RefCountedWillBeGarbageCollected<Touch>, public Scrip
tWrappable { |
| 44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
| 45 public: | 45 public: |
| 46 static PassRefPtrWillBeRawPtr<Touch> create(LocalFrame* frame, EventTarget*
target, | 46 static PassRefPtrWillBeRawPtr<Touch> create(LocalFrame* frame, EventTarget*
target, |
| 47 unsigned identifier, const FloatPoint& screenPos, const FloatPoint& page
Pos, | 47 unsigned identifier, const FloatPoint& screenPos, const FloatPoint& page
Pos, |
| 48 const FloatSize& radius, float rotationAngle, float force) | 48 const FloatSize& radius, float rotationAngle, float force) |
| 49 { | 49 { |
| 50 return adoptRefWillBeNoop( | 50 return adoptRefWillBeNoop( |
| 51 new Touch(frame, target, identifier, screenPos, pagePos, radius, rot
ationAngle, force)); | 51 new Touch(frame, target, identifier, screenPos, pagePos, radius, rot
ationAngle, force)); |
| 52 } | 52 } |
| 53 | 53 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 float m_force; | 98 float m_force; |
| 99 // FIXME(rbyers): Shouldn't we be able to migrate callers to relying on scre
enPos, pagePos | 99 // FIXME(rbyers): Shouldn't we be able to migrate callers to relying on scre
enPos, pagePos |
| 100 // or clientPos? absoluteLocation appears to be the same as pagePos but with
out browser | 100 // or clientPos? absoluteLocation appears to be the same as pagePos but with
out browser |
| 101 // scale applied. | 101 // scale applied. |
| 102 LayoutPoint m_absoluteLocation; | 102 LayoutPoint m_absoluteLocation; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| 106 | 106 |
| 107 #endif // Touch_h | 107 #endif // Touch_h |
| OLD | NEW |