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

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

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLOptGroupElement.h ('k') | Source/core/html/HTMLOptionsCollection.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 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) 2010 Google Inc. All rights reserved. 6 * Copyright (C) 2010 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void setSelected(bool); 54 void setSelected(bool);
55 55
56 HTMLDataListElement* ownerDataListElement() const; 56 HTMLDataListElement* ownerDataListElement() const;
57 HTMLSelectElement* ownerSelectElement() const; 57 HTMLSelectElement* ownerSelectElement() const;
58 58
59 String label() const; 59 String label() const;
60 void setLabel(const AtomicString&); 60 void setLabel(const AtomicString&);
61 61
62 bool ownElementDisabled() const { return m_disabled; } 62 bool ownElementDisabled() const { return m_disabled; }
63 63
64 virtual bool isDisabledFormControl() const override; 64 bool isDisabledFormControl() const override;
65 65
66 String textIndentedToRespectGroupLabel() const; 66 String textIndentedToRespectGroupLabel() const;
67 67
68 void setSelectedState(bool); 68 void setSelectedState(bool);
69 69
70 HTMLFormElement* form() const; 70 HTMLFormElement* form() const;
71 bool spatialNavigationFocused() const; 71 bool spatialNavigationFocused() const;
72 72
73 bool isDisplayNone() const; 73 bool isDisplayNone() const;
74 74
75 int listIndex() const; 75 int listIndex() const;
76 76
77 private: 77 private:
78 explicit HTMLOptionElement(Document&); 78 explicit HTMLOptionElement(Document&);
79 ~HTMLOptionElement(); 79 ~HTMLOptionElement();
80 80
81 virtual bool supportsFocus() const override; 81 bool supportsFocus() const override;
82 virtual void attach(const AttachContext& = AttachContext()) override; 82 void attach(const AttachContext& = AttachContext()) override;
83 virtual void detach(const AttachContext& = AttachContext()) override; 83 void detach(const AttachContext& = AttachContext()) override;
84 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 84 void parseAttribute(const QualifiedName&, const AtomicString&) override;
85 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 85 InsertionNotificationRequest insertedInto(ContainerNode*) override;
86 virtual void didNotifySubtreeInsertionsToDocument() override; 86 void didNotifySubtreeInsertionsToDocument() override;
87 virtual void removedFrom(ContainerNode*) override; 87 void removedFrom(ContainerNode*) override;
88 virtual void accessKeyAction(bool) override; 88 void accessKeyAction(bool) override;
89 virtual void childrenChanged(const ChildrenChange&) override; 89 void childrenChanged(const ChildrenChange&) override;
90 90
91 // <option> never has a layoutObject so we manually manage a cached style. 91 // <option> never has a layoutObject so we manually manage a cached style.
92 void updateNonComputedStyle(); 92 void updateNonComputedStyle();
93 virtual ComputedStyle* nonLayoutObjectComputedStyle() const override; 93 ComputedStyle* nonLayoutObjectComputedStyle() const override;
94 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; 94 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override;
95 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override; 95 void didAddUserAgentShadowRoot(ShadowRoot&) override;
96 96
97 String collectOptionInnerText() const; 97 String collectOptionInnerText() const;
98 98
99 void updateLabel(); 99 void updateLabel();
100 100
101 bool m_disabled; 101 bool m_disabled;
102 bool m_isSelected; 102 bool m_isSelected;
103 RefPtr<ComputedStyle> m_style; 103 RefPtr<ComputedStyle> m_style;
104 }; 104 };
105 105
106 } // namespace blink 106 } // namespace blink
107 107
108 #endif // HTMLOptionElement_h 108 #endif // HTMLOptionElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptGroupElement.h ('k') | Source/core/html/HTMLOptionsCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698