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

Unified Diff: Source/core/input/InputDevice.cpp

Issue 1161783006: Populates sourceDevice attribute into TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add Persistent Created 5 years, 6 months 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: Source/core/input/InputDevice.cpp
diff --git a/Source/core/input/InputDevice.cpp b/Source/core/input/InputDevice.cpp
index 927a99c2a8ae068f6c77990e51671edd9e94ece9..e6ae87e8f7739eb25695b39a021894d80bb0d57a 100644
--- a/Source/core/input/InputDevice.cpp
+++ b/Source/core/input/InputDevice.cpp
@@ -21,4 +21,10 @@ InputDevice::~InputDevice()
{
}
+InputDevice* InputDevice::touchEventInstance()
+{
+ DEFINE_STATIC_LOCAL(Persistent<InputDevice>, instance, (InputDevice::create(true)));
+ return instance;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698