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

Unified Diff: third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h

Issue 2209773002: Remove the blocking touch handlers for the input[type=range] and add touch-action instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed 'id=container' to pass more tests Created 4 years, 4 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/shadow/SliderThumbElement.h
diff --git a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h
index ef06fa4719a2c66637f14f0da3b8ce1f9fd0edb4..80d789dd87a748300c581b20e69d6ab909db7981 100644
--- a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h
+++ b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h
@@ -81,11 +81,20 @@ DEFINE_ELEMENT_TYPE_CASTS(SliderThumbElement, isHTMLElement());
class SliderContainerElement final : public HTMLDivElement {
public:
DECLARE_NODE_FACTORY(SliderContainerElement);
+ void defaultEventHandler(Event*) override;
+ void handleTouchEvent(TouchEvent*);
+ void updateTouchEventHandlerRegistry();
+ void didMoveToNewDocument(Document&) override;
+ void parserDidSetAttributes() override;
+ void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicString&) override;
+ void removeAllEventListeners() override;
private:
explicit SliderContainerElement(Document&);
LayoutObject* createLayoutObject(const ComputedStyle&) override;
const AtomicString& shadowPseudoId() const override;
+
+ bool m_hasTouchEventHandler;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698