OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "core/dom/DOMSettableTokenList.h" | 34 #include "core/dom/DOMSettableTokenList.h" |
35 #include "core/html/HTMLFormControlElement.h" | 35 #include "core/html/HTMLFormControlElement.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class HTMLOutputElement FINAL : public HTMLFormControlElement { | 39 class HTMLOutputElement FINAL : public HTMLFormControlElement { |
40 public: | 40 public: |
41 static PassRefPtr<HTMLOutputElement> create(Document&, HTMLFormElement*); | 41 static PassRefPtr<HTMLOutputElement> create(Document&, HTMLFormElement*); |
42 | 42 |
43 virtual bool willValidate() const { return false; } | 43 virtual bool willValidate() const OVERRIDE { return false; } |
44 | 44 |
45 String value() const; | 45 String value() const; |
46 void setValue(const String&); | 46 void setValue(const String&); |
47 String defaultValue() const; | 47 String defaultValue() const; |
48 void setDefaultValue(const String&); | 48 void setDefaultValue(const String&); |
49 void setFor(const AtomicString&); | 49 void setFor(const AtomicString&); |
50 DOMSettableTokenList* htmlFor() const; | 50 DOMSettableTokenList* htmlFor() const; |
51 | 51 |
52 virtual bool canContainRangeEndPoint() const { return false; } | 52 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } |
53 | 53 |
54 private: | 54 private: |
55 HTMLOutputElement(Document&, HTMLFormElement*); | 55 HTMLOutputElement(Document&, HTMLFormElement*); |
56 | 56 |
57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
58 virtual const AtomicString& formControlType() const; | 58 virtual const AtomicString& formControlType() const OVERRIDE; |
59 virtual bool isEnumeratable() const { return true; } | 59 virtual bool isEnumeratable() const OVERRIDE { return true; } |
60 virtual bool supportLabels() const OVERRIDE { return true; } | 60 virtual bool supportLabels() const OVERRIDE { return true; } |
61 virtual bool supportsFocus() const; | 61 virtual bool supportsFocus() const OVERRIDE; |
62 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 62 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
63 virtual void resetImpl() OVERRIDE; | 63 virtual void resetImpl() OVERRIDE; |
64 | 64 |
65 void setTextContentInternal(const String&); | 65 void setTextContentInternal(const String&); |
66 | 66 |
67 bool m_isDefaultValueMode; | 67 bool m_isDefaultValueMode; |
68 bool m_isSetTextContentInProgress; | 68 bool m_isSetTextContentInProgress; |
69 String m_defaultValue; | 69 String m_defaultValue; |
70 RefPtr<DOMSettableTokenList> m_tokens; | 70 RefPtr<DOMSettableTokenList> m_tokens; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace | 73 } // namespace |
74 | 74 |
75 #endif | 75 #endif |
OLD | NEW |