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 PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChildren() o
verride; | 64 PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChildren() o
verride; |
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 // Return true if we're any part of a media slider. |
| 72 bool isMediaSlider() const; |
| 73 |
71 bool m_inDragMode; | 74 bool m_inDragMode; |
| 75 bool m_didDragAnywhere; |
| 76 LayoutPoint m_mouseDownLocation; |
72 }; | 77 }; |
73 | 78 |
74 inline PassRefPtrWillBeRawPtr<Element> SliderThumbElement::cloneElementWithoutAt
tributesAndChildren() | 79 inline PassRefPtrWillBeRawPtr<Element> SliderThumbElement::cloneElementWithoutAt
tributesAndChildren() |
75 { | 80 { |
76 return create(document()); | 81 return create(document()); |
77 } | 82 } |
78 | 83 |
79 // FIXME: There are no ways to check if a node is a SliderThumbElement. | 84 // FIXME: There are no ways to check if a node is a SliderThumbElement. |
80 DEFINE_ELEMENT_TYPE_CASTS(SliderThumbElement, isHTMLElement()); | 85 DEFINE_ELEMENT_TYPE_CASTS(SliderThumbElement, isHTMLElement()); |
81 | 86 |
82 class SliderContainerElement final : public HTMLDivElement { | 87 class SliderContainerElement final : public HTMLDivElement { |
83 public: | 88 public: |
84 DECLARE_NODE_FACTORY(SliderContainerElement); | 89 DECLARE_NODE_FACTORY(SliderContainerElement); |
85 | 90 |
86 private: | 91 private: |
87 explicit SliderContainerElement(Document&); | 92 explicit SliderContainerElement(Document&); |
88 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 93 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
89 const AtomicString& shadowPseudoId() const override; | 94 const AtomicString& shadowPseudoId() const override; |
90 }; | 95 }; |
91 | 96 |
92 } | 97 } |
93 | 98 |
94 #endif | 99 #endif |
OLD | NEW |