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

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

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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
6 * reserved.
6 * 7 *
7 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 11 * version 2 of the License, or (at your option) any later version.
11 * 12 *
12 * This library is distributed in the hope that it will be useful, 13 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 16 * Library General Public License for more details.
(...skipping 15 matching lines...) Expand all
31 namespace blink { 32 namespace blink {
32 33
33 class HTMLFormElement; 34 class HTMLFormElement;
34 class ValidationMessageClient; 35 class ValidationMessageClient;
35 36
36 enum CheckValidityEventBehavior { 37 enum CheckValidityEventBehavior {
37 CheckValidityDispatchNoEvent, 38 CheckValidityDispatchNoEvent,
38 CheckValidityDispatchInvalidEvent 39 CheckValidityDispatchInvalidEvent
39 }; 40 };
40 41
41 // HTMLFormControlElement is the default implementation of FormAssociatedElement , 42 // HTMLFormControlElement is the default implementation of
42 // and form-associated element implementations should use HTMLFormControlElement 43 // FormAssociatedElement, and form-associated element implementations should use
43 // unless there is a special reason. 44 // HTMLFormControlElement unless there is a special reason.
44 class CORE_EXPORT HTMLFormControlElement : public LabelableElement, 45 class CORE_EXPORT HTMLFormControlElement : public LabelableElement,
45 public FormAssociatedElement { 46 public FormAssociatedElement {
46 USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement); 47 USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement);
47 48
48 public: 49 public:
49 ~HTMLFormControlElement() override; 50 ~HTMLFormControlElement() override;
50 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
51 52
52 String formAction() const; 53 String formAction() const;
53 void setFormAction(const AtomicString&); 54 void setFormAction(const AtomicString&);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool willValidate() const override; 104 bool willValidate() const override;
104 105
105 void updateVisibleValidationMessage(); 106 void updateVisibleValidationMessage();
106 void hideVisibleValidationMessage(); 107 void hideVisibleValidationMessage();
107 bool checkValidity( 108 bool checkValidity(
108 HeapVector<Member<HTMLFormControlElement>>* unhandledInvalidControls = 0, 109 HeapVector<Member<HTMLFormControlElement>>* unhandledInvalidControls = 0,
109 CheckValidityEventBehavior = CheckValidityDispatchInvalidEvent); 110 CheckValidityEventBehavior = CheckValidityDispatchInvalidEvent);
110 bool reportValidity(); 111 bool reportValidity();
111 // This must be called only after the caller check the element is focusable. 112 // This must be called only after the caller check the element is focusable.
112 void showValidationMessage(); 113 void showValidationMessage();
113 // This must be called when a validation constraint or control value is change d. 114 // This must be called when a validation constraint or control value is
115 // changed.
114 void setNeedsValidityCheck(); 116 void setNeedsValidityCheck();
115 void setCustomValidity(const String&) final; 117 void setCustomValidity(const String&) final;
116 void findCustomValidationMessageTextDirection(const String& message, 118 void findCustomValidationMessageTextDirection(const String& message,
117 TextDirection& messageDir, 119 TextDirection& messageDir,
118 String& subMessage, 120 String& subMessage,
119 TextDirection& subMessageDir); 121 TextDirection& subMessageDir);
120 122
121 bool isReadOnly() const; 123 bool isReadOnly() const;
122 bool isDisabledOrReadOnly() const; 124 bool isDisabledOrReadOnly() const;
123 125
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 223 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
222 DEFINE_TYPE_CASTS(HTMLFormControlElement, 224 DEFINE_TYPE_CASTS(HTMLFormControlElement,
223 FormAssociatedElement, 225 FormAssociatedElement,
224 control, 226 control,
225 control->isFormControlElement(), 227 control->isFormControlElement(),
226 control.isFormControlElement()); 228 control.isFormControlElement());
227 229
228 } // namespace blink 230 } // namespace blink
229 231
230 #endif 232 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698