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

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

Issue 389343002: Custom validation message to take into account text direction (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Corrected addition in core.gypi Created 6 years, 4 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual bool willValidate() const OVERRIDE; 90 virtual bool willValidate() const OVERRIDE;
91 void updateVisibleValidationMessage(); 91 void updateVisibleValidationMessage();
92 void hideVisibleValidationMessage(); 92 void hideVisibleValidationMessage();
93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement > >* unhandledInvalidControls = 0); 93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement > >* unhandledInvalidControls = 0);
94 // This must be called when a validation constraint or control value is chan ged. 94 // This must be called when a validation constraint or control value is chan ged.
95 void setNeedsValidityCheck(); 95 void setNeedsValidityCheck();
96 virtual void setCustomValidity(const String&) OVERRIDE FINAL; 96 virtual void setCustomValidity(const String&) OVERRIDE FINAL;
97 void findCustomValidationMessageTextDirection(const String& message, TextDir ection &messageDir, String& subMessage, TextDirection& subMessageDir);
97 98
98 bool isReadOnly() const { return m_isReadOnly; } 99 bool isReadOnly() const { return m_isReadOnly; }
99 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe adOnly; } 100 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe adOnly; }
100 101
101 bool isAutofocusable() const; 102 bool isAutofocusable() const;
102 103
103 bool isAutofilled() const { return m_isAutofilled; } 104 bool isAutofilled() const { return m_isAutofilled; }
104 void setAutofilled(bool = true); 105 void setAutofilled(bool = true);
105 106
106 static HTMLFormControlElement* enclosingFormControlElement(Node*); 107 static HTMLFormControlElement* enclosingFormControlElement(Node*);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 { 190 {
190 return element.isFormControlElement(); 191 return element.isFormControlElement();
191 } 192 }
192 193
193 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 194 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
194 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 195 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
195 196
196 } // namespace 197 } // namespace
197 198
198 #endif 199 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698