| Index: third_party/WebKit/Source/core/dom/Touch.h
|
| diff --git a/third_party/WebKit/Source/core/dom/Touch.h b/third_party/WebKit/Source/core/dom/Touch.h
|
| index b43b3879645c7e87ce3fbec10e222628db565002..9d5490a24135fa5b0b6f62a6736d4a173c9d7309 100644
|
| --- a/third_party/WebKit/Source/core/dom/Touch.h
|
| +++ b/third_party/WebKit/Source/core/dom/Touch.h
|
| @@ -28,6 +28,8 @@
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "core/CoreExport.h"
|
| +#include "core/dom/Document.h"
|
| +#include "core/dom/TouchInit.h"
|
| #include "core/events/EventTarget.h"
|
| #include "platform/geometry/FloatPoint.h"
|
| #include "platform/geometry/FloatSize.h"
|
| @@ -52,6 +54,11 @@ public:
|
| new Touch(frame, target, identifier, screenPos, pagePos, radius, rotationAngle, force));
|
| }
|
|
|
| + static PassRefPtrWillBeRawPtr<Touch> create(const Document& document, const TouchInit& initializer)
|
| + {
|
| + return adoptRefWillBeNoop(new Touch(document.frame(), initializer));
|
| + }
|
| +
|
| // DOM Touch implementation
|
| EventTarget* target() const { return m_target.get(); }
|
| int identifier() const { return m_identifier; }
|
| @@ -82,6 +89,8 @@ private:
|
| const FloatPoint& screenPos, const FloatPoint& pagePos,
|
| const FloatSize& radius, float rotationAngle, float force, LayoutPoint absoluteLocation);
|
|
|
| + Touch(LocalFrame*, const TouchInit&);
|
| +
|
| RefPtrWillBeMember<EventTarget> m_target;
|
| int m_identifier;
|
| // Position relative to the viewport in CSS px.
|
|
|