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

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, 10 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 virtual bool canBeSuccessfulSubmitButton() const { return false; } 85 virtual bool canBeSuccessfulSubmitButton() const { return false; }
86 bool isSuccessfulSubmitButton() const; 86 bool isSuccessfulSubmitButton() const;
87 virtual bool isActivatedSubmit() const { return false; } 87 virtual bool isActivatedSubmit() const { return false; }
88 virtual void setActivatedSubmit(bool) { } 88 virtual void setActivatedSubmit(bool) { }
89 89
90 bool willValidate() const override; 90 bool willValidate() const override;
91 91
92 void updateVisibleValidationMessage(); 92 void updateVisibleValidationMessage();
93 void hideVisibleValidationMessage(); 93 void hideVisibleValidationMessage();
94 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<HTMLFormControlElemen t>>* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDis patchInvalidEvent); 94 bool checkValidity(HeapVector<Member<HTMLFormControlElement>>* unhandledInva lidControls = 0, CheckValidityEventBehavior = CheckValidityDispatchInvalidEvent) ;
95 bool reportValidity(); 95 bool reportValidity();
96 // This must be called only after the caller check the element is focusable. 96 // This must be called only after the caller check the element is focusable.
97 void showValidationMessage(); 97 void showValidationMessage();
98 // This must be called when a validation constraint or control value is chan ged. 98 // This must be called when a validation constraint or control value is chan ged.
99 void setNeedsValidityCheck(); 99 void setNeedsValidityCheck();
100 void setCustomValidity(const String&) final; 100 void setCustomValidity(const String&) final;
101 void findCustomValidationMessageTextDirection(const String& message, TextDir ection &messageDir, String& subMessage, TextDirection& subMessageDir); 101 void findCustomValidationMessageTextDirection(const String& message, TextDir ection &messageDir, String& subMessage, TextDirection& subMessageDir);
102 102
103 bool isReadOnly() const; 103 bool isReadOnly() const;
104 bool isDisabledOrReadOnly() const; 104 bool isDisabledOrReadOnly() const;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 { 199 {
200 return element.isFormControlElement(); 200 return element.isFormControlElement();
201 } 201 }
202 202
203 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 203 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
204 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 204 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
205 205
206 } // namespace blink 206 } // namespace blink
207 207
208 #endif 208 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698