| 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef HTMLOutputElement_h | 31 #ifndef HTMLOutputElement_h |
| 32 #define HTMLOutputElement_h | 32 #define HTMLOutputElement_h |
| 33 | 33 |
| 34 #include "core/dom/DOMTokenList.h" | 34 #include "core/dom/DOMTokenList.h" |
| 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, priva
te DOMTokenListObserver { | 39 class CORE_EXPORT HTMLOutputElement final : public HTMLFormControlElement, priva
te DOMTokenListObserver { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLOutputElement); | 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLOutputElement); |
| 42 public: | 42 public: |
| 43 static PassRefPtrWillBeRawPtr<HTMLOutputElement> create(Document&, HTMLFormE
lement*); | 43 static RawPtr<HTMLOutputElement> create(Document&, HTMLFormElement*); |
| 44 ~HTMLOutputElement() override; | 44 ~HTMLOutputElement() override; |
| 45 | 45 |
| 46 bool willValidate() const override { return false; } | 46 bool willValidate() const override { return false; } |
| 47 | 47 |
| 48 String value() const; | 48 String value() const; |
| 49 void setValue(const String&); | 49 void setValue(const String&); |
| 50 String defaultValue() const; | 50 String defaultValue() const; |
| 51 void setDefaultValue(const String&); | 51 void setDefaultValue(const String&); |
| 52 void setFor(const AtomicString&); | 52 void setFor(const AtomicString&); |
| 53 DOMTokenList* htmlFor() const; | 53 DOMTokenList* htmlFor() const; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 65 bool isEnumeratable() const override { return true; } | 65 bool isEnumeratable() const override { return true; } |
| 66 bool supportLabels() const override { return true; } | 66 bool supportLabels() const override { return true; } |
| 67 bool supportsFocus() const override; | 67 bool supportsFocus() const override; |
| 68 void childrenChanged(const ChildrenChange&) override; | 68 void childrenChanged(const ChildrenChange&) override; |
| 69 void resetImpl() override; | 69 void resetImpl() override; |
| 70 | 70 |
| 71 void valueWasSet() final; | 71 void valueWasSet() final; |
| 72 | 72 |
| 73 bool m_isDefaultValueMode; | 73 bool m_isDefaultValueMode; |
| 74 String m_defaultValue; | 74 String m_defaultValue; |
| 75 RefPtrWillBeMember<DOMTokenList> m_tokens; | 75 Member<DOMTokenList> m_tokens; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif // HTMLOutputElement_h | 80 #endif // HTMLOutputElement_h |
| OLD | NEW |