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 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 15 matching lines...) Expand all Loading... |
26 namespace blink { | 26 namespace blink { |
27 | 27 |
28 class HTMLInputElement; | 28 class HTMLInputElement; |
29 class SliderThumbElement; | 29 class SliderThumbElement; |
30 | 30 |
31 class LayoutSlider final : public LayoutFlexibleBox { | 31 class LayoutSlider final : public LayoutFlexibleBox { |
32 public: | 32 public: |
33 static const int defaultTrackLength; | 33 static const int defaultTrackLength; |
34 | 34 |
35 explicit LayoutSlider(HTMLInputElement*); | 35 explicit LayoutSlider(HTMLInputElement*); |
36 virtual ~LayoutSlider(); | 36 ~LayoutSlider() override; |
37 | 37 |
38 bool inDragMode() const; | 38 bool inDragMode() const; |
39 | 39 |
40 virtual const char* name() const override { return "LayoutSlider"; } | 40 const char* name() const override { return "LayoutSlider"; } |
41 | 41 |
42 private: | 42 private: |
43 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectSlider || LayoutFlexibleBox::isOfType(type); } | 43 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSlider || LayoutFlexibleBox::isOfType(type); } |
44 | 44 |
45 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const override; | 45 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo
sitionMode = PositionOnContainingLine) const override; |
46 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; | 46 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; |
47 virtual void layout() override; | 47 void layout() override; |
48 | 48 |
49 SliderThumbElement* sliderThumbElement() const; | 49 SliderThumbElement* sliderThumbElement() const; |
50 }; | 50 }; |
51 | 51 |
52 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSlider, isSlider()); | 52 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSlider, isSlider()); |
53 | 53 |
54 } // namespace blink | 54 } // namespace blink |
55 | 55 |
56 #endif // LayoutSlider_h | 56 #endif // LayoutSlider_h |
OLD | NEW |