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

Side by Side 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: Move the touch event handlers to the container in the shadow dom 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 { 74 {
75 return create(document()); 75 return create(document());
76 } 76 }
77 77
78 // FIXME: There are no ways to check if a node is a SliderThumbElement. 78 // FIXME: There are no ways to check if a node is a SliderThumbElement.
79 DEFINE_ELEMENT_TYPE_CASTS(SliderThumbElement, isHTMLElement()); 79 DEFINE_ELEMENT_TYPE_CASTS(SliderThumbElement, isHTMLElement());
80 80
81 class SliderContainerElement final : public HTMLDivElement { 81 class SliderContainerElement final : public HTMLDivElement {
82 public: 82 public:
83 DECLARE_NODE_FACTORY(SliderContainerElement); 83 DECLARE_NODE_FACTORY(SliderContainerElement);
84 void defaultEventHandler(Event*) override;
85 void handleTouchEvent(TouchEvent*);
84 86
85 private: 87 private:
86 explicit SliderContainerElement(Document&); 88 explicit SliderContainerElement(Document&);
87 LayoutObject* createLayoutObject(const ComputedStyle&) override; 89 LayoutObject* createLayoutObject(const ComputedStyle&) override;
88 const AtomicString& shadowPseudoId() const override; 90 const AtomicString& shadowPseudoId() const override;
89 }; 91 };
90 92
91 } // namespace blink 93 } // namespace blink
92 94
93 #endif 95 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698