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

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

Issue 1174683004: Populates sourceDevice attribute into MouseEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add initinternal 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
« no previous file with comments | « 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 e6ae87e8f7739eb25695b39a021894d80bb0d57a..976a52399c6fd6843aeefd3514ec1fa28255df02 100644
--- a/Source/core/input/InputDevice.cpp
+++ b/Source/core/input/InputDevice.cpp
@@ -21,10 +21,16 @@ InputDevice::~InputDevice()
{
}
-InputDevice* InputDevice::touchEventInstance()
+InputDevice* InputDevice::firesTouchEventsInputDevice()
{
DEFINE_STATIC_LOCAL(Persistent<InputDevice>, instance, (InputDevice::create(true)));
return instance;
}
+InputDevice* InputDevice::doesntFireTouchEventsInputDevice()
+{
+ DEFINE_STATIC_LOCAL(Persistent<InputDevice>, instance, (InputDevice::create(false)));
+ return instance;
+}
+
} // namespace blink
« no previous file with comments | « Source/core/input/InputDevice.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698