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

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

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/html/HTMLObjectElement.h ('k') | Source/core/html/HTMLOptionElement.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, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 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 13 matching lines...) Expand all
24 #ifndef HTMLOptGroupElement_h 24 #ifndef HTMLOptGroupElement_h
25 #define HTMLOptGroupElement_h 25 #define HTMLOptGroupElement_h
26 26
27 #include "core/html/HTMLElement.h" 27 #include "core/html/HTMLElement.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class HTMLSelectElement; 31 class HTMLSelectElement;
32 class HTMLDivElement; 32 class HTMLDivElement;
33 33
34 class HTMLOptGroupElement FINAL : public HTMLElement { 34 class HTMLOptGroupElement final : public HTMLElement {
35 DEFINE_WRAPPERTYPEINFO(); 35 DEFINE_WRAPPERTYPEINFO();
36 public: 36 public:
37 static PassRefPtrWillBeRawPtr<HTMLOptGroupElement> create(Document&); 37 static PassRefPtrWillBeRawPtr<HTMLOptGroupElement> create(Document&);
38 38
39 virtual bool isDisabledFormControl() const OVERRIDE; 39 virtual bool isDisabledFormControl() const override;
40 HTMLSelectElement* ownerSelectElement() const; 40 HTMLSelectElement* ownerSelectElement() const;
41 41
42 String groupLabelText() const; 42 String groupLabelText() const;
43 43
44 private: 44 private:
45 explicit HTMLOptGroupElement(Document&); 45 explicit HTMLOptGroupElement(Document&);
46 46
47 virtual bool rendererIsFocusable() const OVERRIDE { return true; } 47 virtual bool rendererIsFocusable() const override { return true; }
48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
49 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; 49 virtual void childrenChanged(const ChildrenChange&) override;
50 virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE; 50 virtual void accessKeyAction(bool sendMouseEvents) override;
51 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE; 51 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override;
52 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 52 virtual void attach(const AttachContext& = AttachContext()) override;
53 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 53 virtual void detach(const AttachContext& = AttachContext()) override;
54 54
55 // <optgroup> might not have a renderer so we manually manage a cached style . 55 // <optgroup> might not have a renderer so we manually manage a cached style .
56 void updateNonRenderStyle(); 56 void updateNonRenderStyle();
57 virtual RenderStyle* nonRendererStyle() const OVERRIDE; 57 virtual RenderStyle* nonRendererStyle() const override;
58 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 58 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override;
59 59
60 void updateGroupLabel(); 60 void updateGroupLabel();
61 void recalcSelectOptions(); 61 void recalcSelectOptions();
62 HTMLDivElement& optGroupLabelElement() const; 62 HTMLDivElement& optGroupLabelElement() const;
63 63
64 RefPtr<RenderStyle> m_style; 64 RefPtr<RenderStyle> m_style;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // HTMLOptGroupElement_h 69 #endif // HTMLOptGroupElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.h ('k') | Source/core/html/HTMLOptionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698