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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1160753005: Implement UIEvent.sourceDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 7fbc89d67dfcf5d943216bb5d87024fda3c2792d..4a32e4f4a52281d57e5f651a5efc783ab4718cca 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -72,6 +72,7 @@
#include "core/editing/SurroundingText.h"
#include "core/editing/iterators/TextIterator.h"
#include "core/editing/markup.h"
+#include "core/events/UIEvent.h"
#include "core/fetch/MemoryCache.h"
#include "core/fetch/ResourceFetcher.h"
#include "core/frame/EventHandlerRegistry.h"
@@ -2319,4 +2320,9 @@ ClientRectList* Internals::focusRingRects(Element* element)
return ClientRectList::create(rects);
}
+void Internals::setFiresTouchEvents(UIEvent* uiEvent, bool firesTouchEvents)
+{
+ uiEvent->sourceDevice()->setFiresTouchEvents(firesTouchEvents);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698