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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 2749313002: Move slider implemention to use pointer capture (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index 677a9f86819cd94e5a8368f7b80a46ad5fb59109..8fd9f540312314e970d457b605873dc4605de07a 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -48,6 +48,7 @@
#include "core/events/BeforeTextInsertedEvent.h"
#include "core/events/KeyboardEvent.h"
#include "core/events/MouseEvent.h"
+#include "core/events/PointerEvent.h"
#include "core/events/ScopedEventQueue.h"
#include "core/frame/Deprecation.h"
#include "core/frame/FrameView.h"
@@ -1281,8 +1282,8 @@ void HTMLInputElement::defaultEventHandler(Event* evt) {
m_inputTypeView->handleBeforeTextInsertedEvent(
static_cast<BeforeTextInsertedEvent*>(evt));
- if (evt->isMouseEvent() && evt->type() == EventTypeNames::mousedown) {
- m_inputTypeView->handleMouseDownEvent(toMouseEvent(evt));
+ if (evt->isPointerEvent() && evt->type() == EventTypeNames::pointerdown) {
+ m_inputTypeView->handlePointerDownEvent(toPointerEvent(evt));
if (evt->defaultHandled())
return;
}

Powered by Google App Engine
This is Rietveld 408576698