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 28 matching lines...) Expand all Loading... |
39 #include "core/rendering/style/RenderStyleConstants.h" | 39 #include "core/rendering/style/RenderStyleConstants.h" |
40 #include <wtf/Forward.h> | 40 #include <wtf/Forward.h> |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class HTMLElement; | 44 class HTMLElement; |
45 class HTMLInputElement; | 45 class HTMLInputElement; |
46 class Event; | 46 class Event; |
47 class FloatPoint; | 47 class FloatPoint; |
48 | 48 |
49 class SliderThumbElement : public HTMLDivElement { | 49 class SliderThumbElement FINAL : public HTMLDivElement { |
50 public: | 50 public: |
51 static PassRefPtr<SliderThumbElement> create(Document*); | 51 static PassRefPtr<SliderThumbElement> create(Document*); |
52 | 52 |
53 void setPositionFromValue(); | 53 void setPositionFromValue(); |
54 | 54 |
55 void dragFrom(const LayoutPoint&); | 55 void dragFrom(const LayoutPoint&); |
56 virtual void defaultEventHandler(Event*); | 56 virtual void defaultEventHandler(Event*); |
57 virtual bool willRespondToMouseMoveEvents() OVERRIDE; | 57 virtual bool willRespondToMouseMoveEvents() OVERRIDE; |
58 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 58 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
59 virtual void detach(); | 59 virtual void detach(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 return static_cast<SliderThumbElement*>(node); | 97 return static_cast<SliderThumbElement*>(node); |
98 } | 98 } |
99 | 99 |
100 // This always return a valid pointer. | 100 // This always return a valid pointer. |
101 // An assertion fails if the specified node is not a range input. | 101 // An assertion fails if the specified node is not a range input. |
102 SliderThumbElement* sliderThumbElementOf(Node*); | 102 SliderThumbElement* sliderThumbElementOf(Node*); |
103 HTMLElement* sliderTrackElementOf(Node*); | 103 HTMLElement* sliderTrackElementOf(Node*); |
104 | 104 |
105 // -------------------------------- | 105 // -------------------------------- |
106 | 106 |
107 class RenderSliderThumb : public RenderBlock { | 107 class RenderSliderThumb FINAL : public RenderBlock { |
108 public: | 108 public: |
109 RenderSliderThumb(SliderThumbElement*); | 109 RenderSliderThumb(SliderThumbElement*); |
110 void updateAppearance(RenderStyle* parentStyle); | 110 void updateAppearance(RenderStyle* parentStyle); |
111 | 111 |
112 private: | 112 private: |
113 virtual bool isSliderThumb() const; | 113 virtual bool isSliderThumb() const; |
114 }; | 114 }; |
115 | 115 |
116 // -------------------------------- | 116 // -------------------------------- |
117 | 117 |
118 class SliderContainerElement : public HTMLDivElement { | 118 class SliderContainerElement FINAL : public HTMLDivElement { |
119 public: | 119 public: |
120 static PassRefPtr<SliderContainerElement> create(Document*); | 120 static PassRefPtr<SliderContainerElement> create(Document*); |
121 | 121 |
122 private: | 122 private: |
123 SliderContainerElement(Document*); | 123 SliderContainerElement(Document*); |
124 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); | 124 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
125 virtual const AtomicString& shadowPseudoId() const; | 125 virtual const AtomicString& shadowPseudoId() const; |
126 }; | 126 }; |
127 | 127 |
128 } | 128 } |
129 | 129 |
130 #endif | 130 #endif |
OLD | NEW |