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

Unified Diff: Source/core/events/UIEvent.cpp

Issue 1182313006: Populates sourceDevice attribute into KeyboardEvent (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/events/UIEvent.cpp
diff --git a/Source/core/events/UIEvent.cpp b/Source/core/events/UIEvent.cpp
index 7ec400e78f1de72f1d93e1205ad904e35e69bd1a..3aa3d1b296c7741564051cbb5851b77b9c812f2f 100644
--- a/Source/core/events/UIEvent.cpp
+++ b/Source/core/events/UIEvent.cpp
@@ -53,7 +53,7 @@ UIEvent::~UIEvent()
{
}
-void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
+void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDevice* sourceDevice)
{
if (dispatched())
return;
@@ -62,7 +62,7 @@ void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c
m_view = viewArg;
m_detail = detailArg;
- m_sourceDevice = nullptr;
+ m_sourceDevice = sourceDevice;
}
bool UIEvent::isUIEvent() const

Powered by Google App Engine
This is Rietveld 408576698