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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 private: | 61 private: |
62 SliderThumbElement(Document&); | 62 SliderThumbElement(Document&); |
63 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 63 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
64 Element* cloneElementWithoutAttributesAndChildren() override; | 64 Element* cloneElementWithoutAttributesAndChildren() override; |
65 bool isDisabledFormControl() const override; | 65 bool isDisabledFormControl() const override; |
66 bool matchesReadOnlyPseudoClass() const override; | 66 bool matchesReadOnlyPseudoClass() const override; |
67 bool matchesReadWritePseudoClass() const override; | 67 bool matchesReadWritePseudoClass() const override; |
68 Node* focusDelegate() override; | 68 Node* focusDelegate() override; |
69 void startDragging(); | 69 void startDragging(); |
70 | 70 |
71 bool m_inDragMode; | 71 bool m_inDragMode; // Mouse only. Touch is handled by SliderContainerElement. |
72 }; | 72 }; |
73 | 73 |
74 inline Element* SliderThumbElement::cloneElementWithoutAttributesAndChildren() { | 74 inline Element* SliderThumbElement::cloneElementWithoutAttributesAndChildren() { |
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 { |
(...skipping 21 matching lines...) Expand all Loading... |
103 | 103 |
104 bool m_hasTouchEventHandler; | 104 bool m_hasTouchEventHandler; |
105 bool m_touchStarted; | 105 bool m_touchStarted; |
106 Direction m_slidingDirection; | 106 Direction m_slidingDirection; |
107 LayoutPoint m_startPoint; | 107 LayoutPoint m_startPoint; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 | 111 |
112 #endif | 112 #endif |
OLD | NEW |