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

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

Issue 1160753005: Implement UIEvent.sourceDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Layout test and webexposed 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/events/UIEvent.h ('k') | Source/core/events/UIEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/UIEvent.cpp
diff --git a/Source/core/events/UIEvent.cpp b/Source/core/events/UIEvent.cpp
index ad9c852c4eeea9e23caeb98164e3877925b0f24e..3e563d6e067870d7fc68ccb22e1d3d76755a6cdd 100644
--- a/Source/core/events/UIEvent.cpp
+++ b/Source/core/events/UIEvent.cpp
@@ -28,6 +28,7 @@ namespace blink {
UIEvent::UIEvent()
: m_detail(0)
+ , m_sourceDevice(nullptr)
{
}
@@ -35,6 +36,7 @@ UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
: Event(eventType, canBubbleArg, cancelableArg)
, m_view(viewArg)
, m_detail(detailArg)
+ , m_sourceDevice(nullptr)
{
}
@@ -42,6 +44,7 @@ UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer)
: Event(eventType, initializer)
, m_view(initializer.view())
, m_detail(initializer.detail())
+ , m_sourceDevice(initializer.sourceDevice())
{
}
@@ -58,6 +61,7 @@ void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c
m_view = viewArg;
m_detail = detailArg;
+ m_sourceDevice = nullptr;
}
bool UIEvent::isUIEvent() const
@@ -108,6 +112,7 @@ int UIEvent::which() const
DEFINE_TRACE(UIEvent)
{
visitor->trace(m_view);
+ visitor->trace(m_sourceDevice);
Event::trace(visitor);
}
« no previous file with comments | « Source/core/events/UIEvent.h ('k') | Source/core/events/UIEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698