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

Side by Side Diff: Source/modules/accessibility/AXSlider.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/modules/accessibility/AXScrollbar.h ('k') | Source/modules/accessibility/AXSpinButton.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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 23 matching lines...) Expand all
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AXObjectCacheImpl; 37 class AXObjectCacheImpl;
38 class HTMLInputElement; 38 class HTMLInputElement;
39 39
40 class AXSlider : public AXLayoutObject { 40 class AXSlider : public AXLayoutObject {
41 41
42 public: 42 public:
43 static PassRefPtrWillBeRawPtr<AXSlider> create(LayoutObject*, AXObjectCacheI mpl&); 43 static PassRefPtrWillBeRawPtr<AXSlider> create(LayoutObject*, AXObjectCacheI mpl&);
44 virtual ~AXSlider() { } 44 ~AXSlider() override { }
45 45
46 protected: 46 protected:
47 AXSlider(LayoutObject*, AXObjectCacheImpl&); 47 AXSlider(LayoutObject*, AXObjectCacheImpl&);
48 48
49 private: 49 private:
50 HTMLInputElement* element() const; 50 HTMLInputElement* element() const;
51 virtual AXObject* elementAccessibilityHitTest(const IntPoint&) const overrid e final; 51 AXObject* elementAccessibilityHitTest(const IntPoint&) const final;
52 52
53 virtual AccessibilityRole determineAccessibilityRole() override final; 53 AccessibilityRole determineAccessibilityRole() final;
54 virtual bool isSlider() const override final { return true; } 54 bool isSlider() const final { return true; }
55 virtual bool isControl() const override final { return true; } 55 bool isControl() const final { return true; }
56 56
57 virtual void addChildren() override final; 57 void addChildren() final;
58 58
59 virtual bool canSetValueAttribute() const override final { return true; } 59 bool canSetValueAttribute() const final { return true; }
60 const AtomicString& getAttribute(const QualifiedName& attribute) const; 60 const AtomicString& getAttribute(const QualifiedName& attribute) const;
61 61
62 virtual void setValue(const String&) override final; 62 void setValue(const String&) final;
63 virtual AccessibilityOrientation orientation() const override final; 63 AccessibilityOrientation orientation() const final;
64 }; 64 };
65 65
66 class AXSliderThumb final : public AXMockObject { 66 class AXSliderThumb final : public AXMockObject {
67 67
68 public: 68 public:
69 static PassRefPtrWillBeRawPtr<AXSliderThumb> create(AXObjectCacheImpl&); 69 static PassRefPtrWillBeRawPtr<AXSliderThumb> create(AXObjectCacheImpl&);
70 virtual ~AXSliderThumb() { } 70 ~AXSliderThumb() override { }
71 71
72 virtual AccessibilityRole roleValue() const override { return SliderThumbRol e; } 72 AccessibilityRole roleValue() const override { return SliderThumbRole; }
73 73
74 virtual LayoutRect elementRect() const override; 74 LayoutRect elementRect() const override;
75 75
76 private: 76 private:
77 explicit AXSliderThumb(AXObjectCacheImpl&); 77 explicit AXSliderThumb(AXObjectCacheImpl&);
78 78
79 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 79 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
80 }; 80 };
81 81
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // AXSlider_h 85 #endif // AXSlider_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXScrollbar.h ('k') | Source/modules/accessibility/AXSpinButton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698