| 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 17 matching lines...) Expand all Loading... |
| 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 ~LayoutSlider() override; | 36 ~LayoutSlider() override; |
| 37 | 37 |
| 38 bool inDragMode() const; | |
| 39 | |
| 40 const char* name() const override { return "LayoutSlider"; } | 38 const char* name() const override { return "LayoutSlider"; } |
| 41 | 39 |
| 42 private: | 40 private: |
| 43 bool isOfType(LayoutObjectType type) const override { | 41 bool isOfType(LayoutObjectType type) const override { |
| 44 return type == LayoutObjectSlider || LayoutFlexibleBox::isOfType(type); | 42 return type == LayoutObjectSlider || LayoutFlexibleBox::isOfType(type); |
| 45 } | 43 } |
| 46 | 44 |
| 47 int baselinePosition( | 45 int baselinePosition( |
| 48 FontBaseline, | 46 FontBaseline, |
| 49 bool firstLine, | 47 bool firstLine, |
| 50 LineDirectionMode, | 48 LineDirectionMode, |
| 51 LinePositionMode = PositionOnContainingLine) const override; | 49 LinePositionMode = PositionOnContainingLine) const override; |
| 52 void computeIntrinsicLogicalWidths( | 50 void computeIntrinsicLogicalWidths( |
| 53 LayoutUnit& minLogicalWidth, | 51 LayoutUnit& minLogicalWidth, |
| 54 LayoutUnit& maxLogicalWidth) const override; | 52 LayoutUnit& maxLogicalWidth) const override; |
| 55 void layout() override; | 53 void layout() override; |
| 56 | 54 |
| 57 SliderThumbElement* sliderThumbElement() const; | 55 SliderThumbElement* sliderThumbElement() const; |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSlider, isSlider()); | 58 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSlider, isSlider()); |
| 61 | 59 |
| 62 } // namespace blink | 60 } // namespace blink |
| 63 | 61 |
| 64 #endif // LayoutSlider_h | 62 #endif // LayoutSlider_h |
| OLD | NEW |