summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/html/HTMLMeterElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/HTMLMeterElement.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/HTMLMeterElement.h34
1 files changed, 14 insertions, 20 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/HTMLMeterElement.h b/chromium/third_party/WebKit/Source/core/html/HTMLMeterElement.h
index e815e602442..44d9e6fd20c 100644
--- a/chromium/third_party/WebKit/Source/core/html/HTMLMeterElement.h
+++ b/chromium/third_party/WebKit/Source/core/html/HTMLMeterElement.h
@@ -31,7 +31,7 @@ class RenderMeter;
class HTMLMeterElement FINAL : public LabelableElement {
public:
- static PassRefPtr<HTMLMeterElement> create(Document&);
+ static PassRefPtrWillBeRawPtr<HTMLMeterElement> create(Document&);
enum GaugeRegion {
GaugeRegionOptimum,
@@ -39,28 +39,30 @@ public:
GaugeRegionEvenLessGood
};
+ double value() const;
+ void setValue(double);
+
double min() const;
- void setMin(double, ExceptionState&);
+ void setMin(double);
double max() const;
- void setMax(double, ExceptionState&);
-
- double value() const;
- void setValue(double, ExceptionState&);
+ void setMax(double);
double low() const;
- void setLow(double, ExceptionState&);
+ void setLow(double);
double high() const;
- void setHigh(double, ExceptionState&);
+ void setHigh(double);
double optimum() const;
- void setOptimum(double, ExceptionState&);
+ void setOptimum(double);
double valueRatio() const;
GaugeRegion gaugeRegion() const;
- bool canContainRangeEndPoint() const { return false; }
+ virtual bool canContainRangeEndPoint() const OVERRIDE { return false; }
+
+ virtual void trace(Visitor*) OVERRIDE;
private:
explicit HTMLMeterElement(Document&);
@@ -71,23 +73,15 @@ private:
virtual bool supportLabels() const OVERRIDE { return true; }
- virtual bool recalcWillValidate() const { return false; }
- virtual RenderObject* createRenderer(RenderStyle*);
+ virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
void didElementStateChange();
virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE;
- RefPtr<MeterValueElement> m_value;
+ RefPtrWillBeMember<MeterValueElement> m_value;
};
-inline bool isHTMLMeterElement(Node* node)
-{
- return node->hasTagName(HTMLNames::meterTag);
-}
-
-DEFINE_NODE_TYPE_CASTS(HTMLMeterElement, hasTagName(HTMLNames::meterTag));
-
} // namespace
#endif