Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Unified Diff: third_party/WebKit/Source/core/events/TouchEvent.h

Issue 1415673004: Added web-exposed constructor for Touch and TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed runtime enabled for Touch/TouchInit Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/TouchEvent.h
diff --git a/third_party/WebKit/Source/core/events/TouchEvent.h b/third_party/WebKit/Source/core/events/TouchEvent.h
index 1056138724d785d85b64e9bb025739aaff37f1b5..ff15e9938fb9e37e337ec7918778233c3da07cfc 100644
--- a/third_party/WebKit/Source/core/events/TouchEvent.h
+++ b/third_party/WebKit/Source/core/events/TouchEvent.h
@@ -28,9 +28,10 @@
#define TouchEvent_h
#include "core/CoreExport.h"
+#include "core/dom/TouchList.h"
#include "core/events/EventDispatchMediator.h"
#include "core/events/MouseRelatedEvent.h"
-#include "core/dom/TouchList.h"
+#include "core/events/TouchEventInit.h"
namespace blink {
@@ -54,6 +55,11 @@ public:
modifiers, cancelable, causesScrollingIfUncanceled, uiCreateTime));
}
+ static PassRefPtrWillBeRawPtr<TouchEvent> create(const AtomicString& type, const TouchEventInit& initializer)
+ {
+ return adoptRefWillBeNoop(new TouchEvent(type, initializer));
+ }
+
void initTouchEvent(ScriptState*, TouchList* touches, TouchList* targetTouches,
TouchList* changedTouches, const AtomicString& type,
PassRefPtrWillBeRawPtr<AbstractView>,
@@ -87,6 +93,7 @@ private:
PassRefPtrWillBeRawPtr<AbstractView>, PlatformEvent::Modifiers,
bool cancelable, bool causesScrollingIfUncanceled,
double uiCreateTime = 0);
+ TouchEvent(const AtomicString&, const TouchEventInit&);
RefPtrWillBeMember<TouchList> m_touches;
RefPtrWillBeMember<TouchList> m_targetTouches;
« no previous file with comments | « third_party/WebKit/Source/core/dom/TouchList.h ('k') | third_party/WebKit/Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698