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

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: Rebase 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 e6ae87e8f7739eb25695b39a021894d80bb0d57a..f422bbe56f749a1f848e2d2065bb404bb98dda97 100644
--- a/Source/core/input/InputDevice.cpp
+++ b/Source/core/input/InputDevice.cpp
@@ -27,4 +27,10 @@ InputDevice* InputDevice::touchEventInstance()
return instance;
}
+InputDevice* InputDevice::nonTouchEventInstance()
+{
+ DEFINE_STATIC_LOCAL(Persistent<InputDevice>, instance, (InputDevice::create(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