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

Side by Side Diff: third_party/WebKit/Source/core/html/FormAssociatedElement.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 22 matching lines...) Expand all
33 33
34 class ContainerNode; 34 class ContainerNode;
35 class Document; 35 class Document;
36 class FormAttributeTargetObserver; 36 class FormAttributeTargetObserver;
37 class FormData; 37 class FormData;
38 class HTMLElement; 38 class HTMLElement;
39 class HTMLFormElement; 39 class HTMLFormElement;
40 class Node; 40 class Node;
41 class ValidityState; 41 class ValidityState;
42 42
43 class CORE_EXPORT FormAssociatedElement : public WillBeGarbageCollectedMixin { 43 class CORE_EXPORT FormAssociatedElement : public GarbageCollectedMixin {
44 public: 44 public:
45 virtual ~FormAssociatedElement(); 45 virtual ~FormAssociatedElement();
46 46
47 #if !ENABLE(OILPAN) 47 #if !ENABLE(OILPAN)
48 void ref() { refFormAssociatedElement(); } 48 void ref() { refFormAssociatedElement(); }
49 void deref() { derefFormAssociatedElement(); } 49 void deref() { derefFormAssociatedElement(); }
50 #endif 50 #endif
51 51
52 static HTMLFormElement* findAssociatedForm(const HTMLElement*); 52 static HTMLFormElement* findAssociatedForm(const HTMLElement*);
53 HTMLFormElement* form() const { return m_form.get(); } 53 HTMLFormElement* form() const { return m_form.get(); }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual bool tooShort() const; 85 virtual bool tooShort() const;
86 virtual bool typeMismatch() const; 86 virtual bool typeMismatch() const;
87 virtual bool valueMissing() const; 87 virtual bool valueMissing() const;
88 virtual String validationMessage() const; 88 virtual String validationMessage() const;
89 virtual String validationSubMessage() const; 89 virtual String validationSubMessage() const;
90 bool valid() const; 90 bool valid() const;
91 virtual void setCustomValidity(const String&); 91 virtual void setCustomValidity(const String&);
92 92
93 void formAttributeTargetChanged(); 93 void formAttributeTargetChanged();
94 94
95 typedef WillBeHeapVector<RawPtrWillBeMember<FormAssociatedElement>> List; 95 typedef HeapVector<Member<FormAssociatedElement>> List;
96 96
97 DECLARE_VIRTUAL_TRACE(); 97 DECLARE_VIRTUAL_TRACE();
98 98
99 protected: 99 protected:
100 FormAssociatedElement(); 100 FormAssociatedElement();
101 101
102 void insertedInto(ContainerNode*); 102 void insertedInto(ContainerNode*);
103 void removedFrom(ContainerNode*); 103 void removedFrom(ContainerNode*);
104 void didMoveToNewDocument(Document& oldDocument); 104 void didMoveToNewDocument(Document& oldDocument);
105 105
(...skipping 10 matching lines...) Expand all
116 virtual void didChangeForm(); 116 virtual void didChangeForm();
117 117
118 String customValidationMessage() const; 118 String customValidationMessage() const;
119 119
120 private: 120 private:
121 #if !ENABLE(OILPAN) 121 #if !ENABLE(OILPAN)
122 virtual void refFormAssociatedElement() = 0; 122 virtual void refFormAssociatedElement() = 0;
123 virtual void derefFormAssociatedElement() = 0; 123 virtual void derefFormAssociatedElement() = 0;
124 #endif 124 #endif
125 125
126 void setFormAttributeTargetObserver(PassOwnPtrWillBeRawPtr<FormAttributeTarg etObserver>); 126 void setFormAttributeTargetObserver(RawPtr<FormAttributeTargetObserver>);
127 void resetFormAttributeTargetObserver(); 127 void resetFormAttributeTargetObserver();
128 128
129 OwnPtrWillBeMember<FormAttributeTargetObserver> m_formAttributeTargetObserve r; 129 Member<FormAttributeTargetObserver> m_formAttributeTargetObserver;
130 WeakPtrWillBeMember<HTMLFormElement> m_form; 130 Member<HTMLFormElement> m_form;
131 OwnPtrWillBeMember<ValidityState> m_validityState; 131 Member<ValidityState> m_validityState;
132 String m_customValidationMessage; 132 String m_customValidationMessage;
133 // Non-Oilpan: Even if m_formWasSetByParser is true, m_form can be null 133 // Non-Oilpan: Even if m_formWasSetByParser is true, m_form can be null
134 // because parentNode is not a strong reference and |this| and m_form don't 134 // because parentNode is not a strong reference and |this| and m_form don't
135 // die together. 135 // die together.
136 // Oilpan: If m_formWasSetByParser is true, m_form is always non-null. 136 // Oilpan: If m_formWasSetByParser is true, m_form is always non-null.
137 bool m_formWasSetByParser; 137 bool m_formWasSetByParser;
138 }; 138 };
139 139
140 HTMLElement* toHTMLElement(FormAssociatedElement*); 140 HTMLElement* toHTMLElement(FormAssociatedElement*);
141 HTMLElement& toHTMLElement(FormAssociatedElement&); 141 HTMLElement& toHTMLElement(FormAssociatedElement&);
142 const HTMLElement* toHTMLElement(const FormAssociatedElement*); 142 const HTMLElement* toHTMLElement(const FormAssociatedElement*);
143 const HTMLElement& toHTMLElement(const FormAssociatedElement&); 143 const HTMLElement& toHTMLElement(const FormAssociatedElement&);
144 144
145 } // namespace blink 145 } // namespace blink
146 146
147 #endif // FormAssociatedElement_h 147 #endif // FormAssociatedElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698