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

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

Issue 126793004: Update HTML classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/html/HTMLDetailsElement.h ('k') | Source/core/html/HTMLEmbedElement.h » ('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 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009 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 26 matching lines...) Expand all
37 TranslateAttributeNo, 37 TranslateAttributeNo,
38 TranslateAttributeInherit 38 TranslateAttributeInherit
39 }; 39 };
40 40
41 class HTMLElement : public Element { 41 class HTMLElement : public Element {
42 public: 42 public:
43 static PassRefPtr<HTMLElement> create(const QualifiedName& tagName, Document &); 43 static PassRefPtr<HTMLElement> create(const QualifiedName& tagName, Document &);
44 44
45 virtual String title() const OVERRIDE FINAL; 45 virtual String title() const OVERRIDE FINAL;
46 46
47 virtual short tabIndex() const; 47 virtual short tabIndex() const OVERRIDE;
48 void setTabIndex(int); 48 void setTabIndex(int);
49 49
50 void setInnerText(const String&, ExceptionState&); 50 void setInnerText(const String&, ExceptionState&);
51 void setOuterText(const String&, ExceptionState&); 51 void setOuterText(const String&, ExceptionState&);
52 52
53 Element* insertAdjacentElement(const String& where, Element* newChild, Excep tionState&); 53 Element* insertAdjacentElement(const String& where, Element* newChild, Excep tionState&);
54 void insertAdjacentText(const String& where, const String& text, ExceptionSt ate&); 54 void insertAdjacentText(const String& where, const String& text, ExceptionSt ate&);
55 55
56 virtual bool hasCustomFocusLogic() const; 56 virtual bool hasCustomFocusLogic() const;
57 virtual bool supportsFocus() const; 57 virtual bool supportsFocus() const OVERRIDE;
58 58
59 String contentEditable() const; 59 String contentEditable() const;
60 void setContentEditable(const String&, ExceptionState&); 60 void setContentEditable(const String&, ExceptionState&);
61 61
62 virtual bool draggable() const; 62 virtual bool draggable() const;
63 void setDraggable(bool); 63 void setDraggable(bool);
64 64
65 bool spellcheck() const; 65 bool spellcheck() const;
66 void setSpellcheck(bool); 66 void setSpellcheck(bool);
67 67
68 bool translate() const; 68 bool translate() const;
69 void setTranslate(bool); 69 void setTranslate(bool);
70 70
71 void click(); 71 void click();
72 72
73 virtual void accessKeyAction(bool sendMouseEvents); 73 virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE;
74 74
75 bool ieForbidsInsertHTML() const; 75 bool ieForbidsInsertHTML() const;
76 76
77 virtual bool rendererIsNeeded(const RenderStyle&); 77 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
78 virtual RenderObject* createRenderer(RenderStyle*); 78 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
79 79
80 virtual HTMLFormElement* formOwner() const { return 0; } 80 virtual HTMLFormElement* formOwner() const { return 0; }
81 81
82 HTMLFormElement* findFormAncestor() const; 82 HTMLFormElement* findFormAncestor() const;
83 83
84 bool hasDirectionAuto() const; 84 bool hasDirectionAuto() const;
85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const; 85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const;
86 86
87 virtual bool isHTMLUnknownElement() const { return false; } 87 virtual bool isHTMLUnknownElement() const { return false; }
88 88
89 virtual bool isLabelable() const { return false; } 89 virtual bool isLabelable() const { return false; }
90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content 90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content
91 virtual bool isInteractiveContent() const; 91 virtual bool isInteractiveContent() const;
92 virtual void defaultEventHandler(Event*) OVERRIDE; 92 virtual void defaultEventHandler(Event*) OVERRIDE;
93 93
94 protected: 94 protected:
95 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); 95 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
96 96
97 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str ing& value); 97 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str ing& value);
98 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri ng& color); 98 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri ng& color);
99 99
100 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert ySet*); 100 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert ySet*);
101 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe t*); 101 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe t*);
102 102
103 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 103 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
104 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 104 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
105 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 105 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
106 unsigned parseBorderWidthAttribute(const AtomicString&) const; 106 unsigned parseBorderWidthAttribute(const AtomicString&) const;
107 107
108 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 108 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
109 void calculateAndAdjustDirectionality(); 109 void calculateAndAdjustDirectionality();
110 110
111 private: 111 private:
112 virtual String nodeName() const OVERRIDE FINAL; 112 virtual String nodeName() const OVERRIDE FINAL;
113 113
114 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS et*); 114 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS et*);
115 115
116 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&); 116 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&);
117 117
118 void dirAttributeChanged(const AtomicString&); 118 void dirAttributeChanged(const AtomicString&);
(...skipping 14 matching lines...) Expand all
133 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document , ConstructionType type = CreateHTMLElement) 133 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document , ConstructionType type = CreateHTMLElement)
134 : Element(tagName, &document, type) 134 : Element(tagName, &document, type)
135 { 135 {
136 ASSERT(!tagName.localName().isNull()); 136 ASSERT(!tagName.localName().isNull());
137 ScriptWrappable::init(this); 137 ScriptWrappable::init(this);
138 } 138 }
139 139
140 } // namespace WebCore 140 } // namespace WebCore
141 141
142 #endif // HTMLElement_h 142 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDetailsElement.h ('k') | Source/core/html/HTMLEmbedElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698