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

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

Issue 2537133005: New interface and function for form association (Closed)
Patch Set: Added to BUILD.gn Created 4 years 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 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 11 matching lines...) Expand all
22 22
23 #ifndef HTMLElement_h 23 #ifndef HTMLElement_h
24 #define HTMLElement_h 24 #define HTMLElement_h
25 25
26 #include "core/CoreExport.h" 26 #include "core/CoreExport.h"
27 #include "core/dom/Element.h" 27 #include "core/dom/Element.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class DocumentFragment; 31 class DocumentFragment;
32 class ExceptionState;
33 class FormAssociated;
32 class HTMLFormElement; 34 class HTMLFormElement;
33 class HTMLMenuElement; 35 class HTMLMenuElement;
34 class ExceptionState;
35 class KeyboardEvent; 36 class KeyboardEvent;
36 37
37 enum TranslateAttributeMode { 38 enum TranslateAttributeMode {
38 TranslateAttributeYes, 39 TranslateAttributeYes,
39 TranslateAttributeNo, 40 TranslateAttributeNo,
40 TranslateAttributeInherit 41 TranslateAttributeInherit
41 }; 42 };
42 43
43 class CORE_EXPORT HTMLElement : public Element { 44 class CORE_EXPORT HTMLElement : public Element {
44 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 113
113 virtual String altText() const { return String(); } 114 virtual String altText() const { return String(); }
114 115
115 int offsetLeftForBinding(); 116 int offsetLeftForBinding();
116 int offsetTopForBinding(); 117 int offsetTopForBinding();
117 int offsetWidthForBinding(); 118 int offsetWidthForBinding();
118 int offsetHeightForBinding(); 119 int offsetHeightForBinding();
119 120
120 Element* unclosedOffsetParent(); 121 Element* unclosedOffsetParent();
121 122
123 virtual FormAssociated* toFormAssociatedOrNull() { return nullptr; };
124
122 protected: 125 protected:
123 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); 126 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
124 127
125 enum AllowPercentage { DontAllowPercentageValues, AllowPercentageValues }; 128 enum AllowPercentage { DontAllowPercentageValues, AllowPercentageValues };
126 void addHTMLLengthToStyle(MutableStylePropertySet*, 129 void addHTMLLengthToStyle(MutableStylePropertySet*,
127 CSSPropertyID, 130 CSSPropertyID,
128 const String& value, 131 const String& value,
129 AllowPercentage = AllowPercentageValues); 132 AllowPercentage = AllowPercentageValues);
130 void addHTMLColorToStyle(MutableStylePropertySet*, 133 void addHTMLColorToStyle(MutableStylePropertySet*,
131 CSSPropertyID, 134 CSSPropertyID,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 inline bool isElementOfType<const thisType>(const HTMLElement& element) { \ 236 inline bool isElementOfType<const thisType>(const HTMLElement& element) { \
234 return is##thisType(element); \ 237 return is##thisType(element); \
235 } \ 238 } \
236 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 239 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
237 240
238 } // namespace blink 241 } // namespace blink
239 242
240 #include "core/HTMLElementTypeHelpers.h" 243 #include "core/HTMLElementTypeHelpers.h"
241 244
242 #endif // HTMLElement_h 245 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/FormAssociated.h ('k') | third_party/WebKit/Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698