OLD | NEW |
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 Loading... |
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*); |
| 86 void updateTouchEventHandlerRegistry(); |
| 87 void didMoveToNewDocument(Document&) override; |
| 88 void parserDidSetAttributes() override; |
| 89 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
| 90 void removeAllEventListeners() override; |
84 | 91 |
85 private: | 92 private: |
86 explicit SliderContainerElement(Document&); | 93 explicit SliderContainerElement(Document&); |
87 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 94 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
88 const AtomicString& shadowPseudoId() const override; | 95 const AtomicString& shadowPseudoId() const override; |
| 96 |
| 97 bool m_hasTouchEventHandler; |
89 }; | 98 }; |
90 | 99 |
91 } // namespace blink | 100 } // namespace blink |
92 | 101 |
93 #endif | 102 #endif |
OLD | NEW |