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

Side by Side Diff: third_party/WebKit/Source/core/html/ValidityState.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 * This file is part of the WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2009 Michelangelo De Simone <micdesim@gmail.com> 4 * Copyright (C) 2009 Michelangelo De Simone <micdesim@gmail.com>
5 * Copyright (C) 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 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 12 matching lines...) Expand all
23 23
24 #ifndef ValidityState_h 24 #ifndef ValidityState_h
25 #define ValidityState_h 25 #define ValidityState_h
26 26
27 #include "bindings/core/v8/ScriptWrappable.h" 27 #include "bindings/core/v8/ScriptWrappable.h"
28 #include "core/html/FormAssociatedElement.h" 28 #include "core/html/FormAssociatedElement.h"
29 #include "wtf/PassOwnPtr.h" 29 #include "wtf/PassOwnPtr.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class ValidityState final : public NoBaseWillBeGarbageCollectedFinalized<Validit yState>, public ScriptWrappable { 33 class ValidityState final : public GarbageCollectedFinalized<ValidityState>, pub lic ScriptWrappable {
34 DEFINE_WRAPPERTYPEINFO(); 34 DEFINE_WRAPPERTYPEINFO();
35 USING_FAST_MALLOC_WILL_BE_REMOVED(ValidityState);
36 WTF_MAKE_NONCOPYABLE(ValidityState); 35 WTF_MAKE_NONCOPYABLE(ValidityState);
37 public: 36 public:
38 static PassOwnPtrWillBeRawPtr<ValidityState> create(FormAssociatedElement* c ontrol) 37 static RawPtr<ValidityState> create(FormAssociatedElement* control)
39 { 38 {
40 return adoptPtrWillBeNoop(new ValidityState(control)); 39 return (new ValidityState(control));
41 } 40 }
42 DEFINE_INLINE_TRACE() { visitor->trace(m_control); } 41 DEFINE_INLINE_TRACE() { visitor->trace(m_control); }
43 42
44 #if !ENABLE(OILPAN) 43 #if !ENABLE(OILPAN)
45 void ref() { m_control->ref(); } 44 void ref() { m_control->ref(); }
46 void deref() { m_control->deref(); } 45 void deref() { m_control->deref(); }
47 #endif 46 #endif
48 47
49 String validationMessage() const; 48 String validationMessage() const;
50 49
51 void setCustomErrorMessage(const String&); 50 void setCustomErrorMessage(const String&);
52 51
53 bool valueMissing() const; 52 bool valueMissing() const;
54 bool typeMismatch() const; 53 bool typeMismatch() const;
55 bool patternMismatch() const; 54 bool patternMismatch() const;
56 bool tooLong() const; 55 bool tooLong() const;
57 bool tooShort() const; 56 bool tooShort() const;
58 bool rangeUnderflow() const; 57 bool rangeUnderflow() const;
59 bool rangeOverflow() const; 58 bool rangeOverflow() const;
60 bool stepMismatch() const; 59 bool stepMismatch() const;
61 bool badInput() const; 60 bool badInput() const;
62 bool customError() const; 61 bool customError() const;
63 bool valid() const; 62 bool valid() const;
64 63
65 private: 64 private:
66 explicit ValidityState(FormAssociatedElement* control) 65 explicit ValidityState(FormAssociatedElement* control)
67 : m_control(control) { } 66 : m_control(control) { }
68 67
69 RawPtrWillBeMember<FormAssociatedElement> m_control; 68 Member<FormAssociatedElement> m_control;
70 }; 69 };
71 70
72 } // namespace blink 71 } // namespace blink
73 72
74 #endif // ValidityState_h 73 #endif // ValidityState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698