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

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

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use nullptr Created 6 years, 1 month 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 virtual bool canBeSuccessfulSubmitButton() const { return false; } 84 virtual bool canBeSuccessfulSubmitButton() const { return false; }
85 bool isSuccessfulSubmitButton() const; 85 bool isSuccessfulSubmitButton() const;
86 virtual bool isActivatedSubmit() const { return false; } 86 virtual bool isActivatedSubmit() const { return false; }
87 virtual void setActivatedSubmit(bool) { } 87 virtual void setActivatedSubmit(bool) { }
88 88
89 virtual bool willValidate() const override; 89 virtual bool willValidate() const override;
90 90
91 void updateVisibleValidationMessage(); 91 void updateVisibleValidationMessage();
92 void hideVisibleValidationMessage(); 92 void hideVisibleValidationMessage();
93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<HTMLFormControlElemen t> >* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDi spatchInvalidEvent); 93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<HTMLFormControlElemen t>>* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDis patchInvalidEvent);
94 bool reportValidity(); 94 bool reportValidity();
95 // This must be called only after the caller check the element is focusable. 95 // This must be called only after the caller check the element is focusable.
96 void showValidationMessage(); 96 void showValidationMessage();
97 // This must be called when a validation constraint or control value is chan ged. 97 // This must be called when a validation constraint or control value is chan ged.
98 void setNeedsValidityCheck(); 98 void setNeedsValidityCheck();
99 virtual void setCustomValidity(const String&) override final; 99 virtual void setCustomValidity(const String&) override final;
100 void findCustomValidationMessageTextDirection(const String& message, TextDir ection &messageDir, String& subMessage, TextDirection& subMessageDir); 100 void findCustomValidationMessageTextDirection(const String& message, TextDir ection &messageDir, String& subMessage, TextDirection& subMessageDir);
101 101
102 bool isReadOnly() const { return m_isReadOnly; } 102 bool isReadOnly() const { return m_isReadOnly; }
103 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe adOnly; } 103 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe adOnly; }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 { 201 {
202 return element.isFormControlElement(); 202 return element.isFormControlElement();
203 } 203 }
204 204
205 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 205 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
206 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 206 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
207 207
208 } // namespace 208 } // namespace
209 209
210 #endif 210 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698