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

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

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
Index: Source/core/input/InputDevice.h
diff --git a/Source/core/input/InputDevice.h b/Source/core/input/InputDevice.h
index 244e5638ceaae3b3e167c6ee2c9fa4736b0eede0..514e64b3caccfae824cfaaee317a31598c7a031a 100644
--- a/Source/core/input/InputDevice.h
+++ b/Source/core/input/InputDevice.h
@@ -16,6 +16,13 @@ class CORE_EXPORT InputDevice : public GarbageCollectedFinalized<InputDevice>, p
public:
~InputDevice();
+
+ // This return a static local InputDevice pointer which has firesTouchEvents set to be true.
+ static InputDevice* touchEventInstance();
+
+ // This return a static local InputDevice pointer which has firesTouchEvents set to be false.
+ static InputDevice* nonTouchEventInstance();
tdresser 2015/06/10 13:46:00 Let's remove this until we use it.
lanwei 2015/06/10 23:23:22 Done.
+
static InputDevice* create(bool firesTouchEvents)
{
return new InputDevice(firesTouchEvents);

Powered by Google App Engine
This is Rietveld 408576698