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