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 24 matching lines...) Expand all Loading... | |
35 #include "core/html/HTMLFormControlElement.h" | 35 #include "core/html/HTMLFormControlElement.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class CORE_EXPORT HTMLOutputElement final : public HTMLFormControlElement, | 39 class CORE_EXPORT HTMLOutputElement final : public HTMLFormControlElement, |
40 private DOMTokenListObserver { | 40 private DOMTokenListObserver { |
41 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
42 USING_GARBAGE_COLLECTED_MIXIN(HTMLOutputElement); | 42 USING_GARBAGE_COLLECTED_MIXIN(HTMLOutputElement); |
43 | 43 |
44 public: | 44 public: |
45 static HTMLOutputElement* create(Document&, HTMLFormElement*); | 45 static HTMLOutputElement* create(Document&); |
46 ~HTMLOutputElement() override; | 46 ~HTMLOutputElement() override; |
47 | 47 |
48 bool willValidate() const override { return false; } | 48 bool willValidate() const override { return false; } |
49 | 49 |
50 String value() const; | 50 String value() const; |
51 void setValue(const String&); | 51 void setValue(const String&); |
52 String defaultValue() const; | 52 String defaultValue() const; |
53 void setDefaultValue(const String&); | 53 void setDefaultValue(const String&); |
54 void setFor(const AtomicString&); | 54 void setFor(const AtomicString&); |
55 DOMTokenList* htmlFor() const; | 55 DOMTokenList* htmlFor() const; |
56 | 56 |
57 bool canContainRangeEndPoint() const override { return false; } | 57 bool canContainRangeEndPoint() const override { return false; } |
58 | 58 |
59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
60 | 60 |
61 private: | 61 private: |
62 HTMLOutputElement(Document&, HTMLFormElement*); | 62 HTMLOutputElement(Document&); |
tkent
2016/12/09 01:27:30
Prepend 'explicit'
| |
63 | 63 |
64 void parseAttribute(const QualifiedName&, | 64 void parseAttribute(const QualifiedName&, |
65 const AtomicString&, | 65 const AtomicString&, |
66 const AtomicString&) override; | 66 const AtomicString&) override; |
67 const AtomicString& formControlType() const override; | 67 const AtomicString& formControlType() const override; |
68 bool isDisabledFormControl() const override; | 68 bool isDisabledFormControl() const override; |
69 bool matchesEnabledPseudoClass() const override; | 69 bool matchesEnabledPseudoClass() const override; |
70 bool isEnumeratable() const override { return true; } | 70 bool isEnumeratable() const override { return true; } |
71 bool supportLabels() const override { return true; } | 71 bool supportLabels() const override { return true; } |
72 bool supportsFocus() const override; | 72 bool supportsFocus() const override; |
73 void childrenChanged(const ChildrenChange&) override; | 73 void childrenChanged(const ChildrenChange&) override; |
74 void resetImpl() override; | 74 void resetImpl() override; |
75 int tabIndex() const override; | 75 int tabIndex() const override; |
76 | 76 |
77 void valueWasSet() final; | 77 void valueWasSet() final; |
78 | 78 |
79 bool m_isDefaultValueMode; | 79 bool m_isDefaultValueMode; |
80 String m_defaultValue; | 80 String m_defaultValue; |
81 Member<DOMTokenList> m_tokens; | 81 Member<DOMTokenList> m_tokens; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace blink | 84 } // namespace blink |
85 | 85 |
86 #endif // HTMLOutputElement_h | 86 #endif // HTMLOutputElement_h |
OLD | NEW |