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

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: 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
« Source/core/input/InputDevice.h ('K') | « Source/core/input/InputDevice.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/input/InputDevice.cpp
diff --git a/Source/core/input/InputDevice.cpp b/Source/core/input/InputDevice.cpp
index 927a99c2a8ae068f6c77990e51671edd9e94ece9..6121c1908c84903aaaafded9e8cd9607b2ebf87a 100644
--- a/Source/core/input/InputDevice.cpp
+++ b/Source/core/input/InputDevice.cpp
@@ -21,4 +21,16 @@ InputDevice::~InputDevice()
{
}
+InputDevice* InputDevice::touchEventInstance()
+{
+ DEFINE_STATIC_LOCAL(InputDevice, instance, (true));
+ return &instance;
+}
+
+InputDevice* InputDevice::nonTouchEventInstance()
+{
+ DEFINE_STATIC_LOCAL(InputDevice, instance, (false));
+ return &instance;
+}
+
} // namespace blink
« Source/core/input/InputDevice.h ('K') | « Source/core/input/InputDevice.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698