Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLButtonElement.h

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 14 matching lines...) Expand all
25 #define HTMLButtonElement_h 25 #define HTMLButtonElement_h
26 26
27 #include "core/html/HTMLFormControlElement.h" 27 #include "core/html/HTMLFormControlElement.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class HTMLButtonElement final : public HTMLFormControlElement { 31 class HTMLButtonElement final : public HTMLFormControlElement {
32 DEFINE_WRAPPERTYPEINFO(); 32 DEFINE_WRAPPERTYPEINFO();
33 33
34 public: 34 public:
35 static HTMLButtonElement* create(Document&, HTMLFormElement*); 35 static HTMLButtonElement* create(Document&);
36 36
37 void setType(const AtomicString&); 37 void setType(const AtomicString&);
38 38
39 const AtomicString& value() const; 39 const AtomicString& value() const;
40 40
41 bool willRespondToMouseClickEvents() override; 41 bool willRespondToMouseClickEvents() override;
42 42
43 private: 43 private:
44 HTMLButtonElement(Document&, HTMLFormElement*); 44 explicit HTMLButtonElement(Document&);
45 45
46 enum Type { SUBMIT, RESET, BUTTON }; 46 enum Type { SUBMIT, RESET, BUTTON };
47 47
48 const AtomicString& formControlType() const override; 48 const AtomicString& formControlType() const override;
49 49
50 LayoutObject* createLayoutObject(const ComputedStyle&) override; 50 LayoutObject* createLayoutObject(const ComputedStyle&) override;
51 51
52 // HTMLFormControlElement always creates one, but buttons don't need it. 52 // HTMLFormControlElement always creates one, but buttons don't need it.
53 bool alwaysCreateUserAgentShadowRoot() const override { return false; } 53 bool alwaysCreateUserAgentShadowRoot() const override { return false; }
54 54
(...skipping 24 matching lines...) Expand all
79 bool isOptionalFormControl() const override { return true; } 79 bool isOptionalFormControl() const override { return true; }
80 bool recalcWillValidate() const override; 80 bool recalcWillValidate() const override;
81 81
82 Type m_type; 82 Type m_type;
83 bool m_isActivatedSubmit; 83 bool m_isActivatedSubmit;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // HTMLButtonElement_h 88 #endif // HTMLButtonElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilities.cpp ('k') | third_party/WebKit/Source/core/html/HTMLButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698