| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 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 14 matching lines...) Expand all Loading... |
| 25 #include "core/html/LabelableElement.h" | 25 #include "core/html/LabelableElement.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 class MeterValueElement; | 29 class MeterValueElement; |
| 30 class LayoutMeter; | 30 class LayoutMeter; |
| 31 | 31 |
| 32 class CORE_EXPORT HTMLMeterElement final : public LabelableElement { | 32 class CORE_EXPORT HTMLMeterElement final : public LabelableElement { |
| 33 DEFINE_WRAPPERTYPEINFO(); | 33 DEFINE_WRAPPERTYPEINFO(); |
| 34 public: | 34 public: |
| 35 static PassRefPtrWillBeRawPtr<HTMLMeterElement> create(Document&); | 35 static RawPtr<HTMLMeterElement> create(Document&); |
| 36 | 36 |
| 37 enum GaugeRegion { | 37 enum GaugeRegion { |
| 38 GaugeRegionOptimum, | 38 GaugeRegionOptimum, |
| 39 GaugeRegionSuboptimal, | 39 GaugeRegionSuboptimal, |
| 40 GaugeRegionEvenLessGood | 40 GaugeRegionEvenLessGood |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 double value() const; | 43 double value() const; |
| 44 void setValue(double); | 44 void setValue(double); |
| 45 | 45 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 74 LayoutMeter* layoutMeter() const; | 74 LayoutMeter* layoutMeter() const; |
| 75 | 75 |
| 76 bool supportLabels() const override { return true; } | 76 bool supportLabels() const override { return true; } |
| 77 | 77 |
| 78 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 78 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 79 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 79 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
| 80 | 80 |
| 81 void didElementStateChange(); | 81 void didElementStateChange(); |
| 82 void didAddUserAgentShadowRoot(ShadowRoot&) override; | 82 void didAddUserAgentShadowRoot(ShadowRoot&) override; |
| 83 | 83 |
| 84 RefPtrWillBeMember<MeterValueElement> m_value; | 84 Member<MeterValueElement> m_value; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace blink | 87 } // namespace blink |
| 88 | 88 |
| 89 #endif // HTMLMeterElement_h | 89 #endif // HTMLMeterElement_h |
| OLD | NEW |