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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 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 21 matching lines...) Expand all
32 32
33 class HTMLFormElement; 33 class HTMLFormElement;
34 class ValidationMessageClient; 34 class ValidationMessageClient;
35 35
36 enum CheckValidityEventBehavior { CheckValidityDispatchNoEvent, CheckValidityDis patchInvalidEvent }; 36 enum CheckValidityEventBehavior { CheckValidityDispatchNoEvent, CheckValidityDis patchInvalidEvent };
37 37
38 // HTMLFormControlElement is the default implementation of FormAssociatedElement , 38 // HTMLFormControlElement is the default implementation of FormAssociatedElement ,
39 // and form-associated element implementations should use HTMLFormControlElement 39 // and form-associated element implementations should use HTMLFormControlElement
40 // unless there is a special reason. 40 // unless there is a special reason.
41 class CORE_EXPORT HTMLFormControlElement : public LabelableElement, public FormA ssociatedElement { 41 class CORE_EXPORT HTMLFormControlElement : public LabelableElement, public FormA ssociatedElement {
42 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement); 42 USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement);
43 43
44 public: 44 public:
45 ~HTMLFormControlElement() override; 45 ~HTMLFormControlElement() override;
46 DECLARE_VIRTUAL_TRACE(); 46 DECLARE_VIRTUAL_TRACE();
47 47
48 String formAction() const; 48 String formAction() const;
49 void setFormAction(const AtomicString&); 49 void setFormAction(const AtomicString&);
50 String formEnctype() const; 50 String formEnctype() const;
51 void setFormEnctype(const AtomicString&); 51 void setFormEnctype(const AtomicString&);
52 String formMethod() const; 52 String formMethod() const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Return true if this control can submit a form. 89 // Return true if this control can submit a form.
90 // i.e. canBeSuccessfulSubmitButton() && !isDisabledFormControl(). 90 // i.e. canBeSuccessfulSubmitButton() && !isDisabledFormControl().
91 bool isSuccessfulSubmitButton() const; 91 bool isSuccessfulSubmitButton() const;
92 virtual bool isActivatedSubmit() const { return false; } 92 virtual bool isActivatedSubmit() const { return false; }
93 virtual void setActivatedSubmit(bool) { } 93 virtual void setActivatedSubmit(bool) { }
94 94
95 bool willValidate() const override; 95 bool willValidate() const override;
96 96
97 void updateVisibleValidationMessage(); 97 void updateVisibleValidationMessage();
98 void hideVisibleValidationMessage(); 98 void hideVisibleValidationMessage();
99 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<HTMLFormControlElemen t>>* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDis patchInvalidEvent); 99 bool checkValidity(HeapVector<Member<HTMLFormControlElement>>* unhandledInva lidControls = 0, CheckValidityEventBehavior = CheckValidityDispatchInvalidEvent) ;
100 bool reportValidity(); 100 bool reportValidity();
101 // This must be called only after the caller check the element is focusable. 101 // This must be called only after the caller check the element is focusable.
102 void showValidationMessage(); 102 void showValidationMessage();
103 // This must be called when a validation constraint or control value is chan ged. 103 // This must be called when a validation constraint or control value is chan ged.
104 void setNeedsValidityCheck(); 104 void setNeedsValidityCheck();
105 void setCustomValidity(const String&) final; 105 void setCustomValidity(const String&) final;
106 void findCustomValidationMessageTextDirection(const String& message, TextDir ection &messageDir, String& subMessage, TextDirection& subMessageDir); 106 void findCustomValidationMessageTextDirection(const String& message, TextDir ection &messageDir, String& subMessage, TextDirection& subMessageDir);
107 107
108 bool isReadOnly() const; 108 bool isReadOnly() const;
109 bool isDisabledOrReadOnly() const; 109 bool isDisabledOrReadOnly() const;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 { 203 {
204 return element.isFormControlElement(); 204 return element.isFormControlElement();
205 } 205 }
206 206
207 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 207 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
208 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 208 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
209 209
210 } // namespace blink 210 } // namespace blink
211 211
212 #endif 212 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698