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

Side by Side Diff: Source/modules/accessibility/AXScrollView.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/AXSVGRoot.h ('k') | Source/modules/accessibility/AXScrollbar.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 20 matching lines...) Expand all
31 namespace blink { 31 namespace blink {
32 32
33 class AXObjectCacheImpl; 33 class AXObjectCacheImpl;
34 class AXScrollbar; 34 class AXScrollbar;
35 class Scrollbar; 35 class Scrollbar;
36 class FrameView; 36 class FrameView;
37 37
38 class AXScrollView final : public AXObject { 38 class AXScrollView final : public AXObject {
39 public: 39 public:
40 static PassRefPtrWillBeRawPtr<AXScrollView> create(FrameView*, AXObjectCache Impl&); 40 static PassRefPtrWillBeRawPtr<AXScrollView> create(FrameView*, AXObjectCache Impl&);
41 virtual AccessibilityRole roleValue() const override { return ScrollAreaRole ; } 41 AccessibilityRole roleValue() const override { return ScrollAreaRole; }
42 FrameView* scrollView() const { return m_scrollView; } 42 FrameView* scrollView() const { return m_scrollView; }
43 43
44 virtual ~AXScrollView(); 44 ~AXScrollView() override;
45 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
46 virtual void detach() override; 46 void detach() override;
47 47
48 protected: 48 protected:
49 virtual ScrollableArea* getScrollableAreaIfScrollable() const override; 49 ScrollableArea* getScrollableAreaIfScrollable() const override;
50 50
51 private: 51 private:
52 AXScrollView(FrameView*, AXObjectCacheImpl&); 52 AXScrollView(FrameView*, AXObjectCacheImpl&);
53 53
54 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 54 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
55 virtual bool isAXScrollView() const override { return true; } 55 bool isAXScrollView() const override { return true; }
56 virtual bool isEnabled() const override { return true; } 56 bool isEnabled() const override { return true; }
57 57
58 virtual bool isAttachment() const override; 58 bool isAttachment() const override;
59 virtual Widget* widgetForAttachmentView() const override; 59 Widget* widgetForAttachmentView() const override;
60 60
61 virtual AXObject* scrollBar(AccessibilityOrientation) override; 61 AXObject* scrollBar(AccessibilityOrientation) override;
62 virtual void addChildren() override; 62 void addChildren() override;
63 virtual void clearChildren() override; 63 void clearChildren() override;
64 virtual AXObject* accessibilityHitTest(const IntPoint&) const override; 64 AXObject* accessibilityHitTest(const IntPoint&) const override;
65 virtual void updateChildrenIfNecessary() override; 65 void updateChildrenIfNecessary() override;
66 virtual void setNeedsToUpdateChildren() override { m_childrenDirty = true; } 66 void setNeedsToUpdateChildren() override { m_childrenDirty = true; }
67 void updateScrollbars(); 67 void updateScrollbars();
68 68
69 virtual FrameView* documentFrameView() const override; 69 FrameView* documentFrameView() const override;
70 virtual LayoutRect elementRect() const override; 70 LayoutRect elementRect() const override;
71 virtual AXObject* computeParent() const override; 71 AXObject* computeParent() const override;
72 virtual AXObject* computeParentIfExists() const override; 72 AXObject* computeParentIfExists() const override;
73 73
74 AXObject* webAreaObject() const; 74 AXObject* webAreaObject() const;
75 virtual AXObject* firstChild() const override { return webAreaObject(); } 75 AXObject* firstChild() const override { return webAreaObject(); }
76 AXScrollbar* addChildScrollbar(Scrollbar*); 76 AXScrollbar* addChildScrollbar(Scrollbar*);
77 void removeChildScrollbar(AXObject*); 77 void removeChildScrollbar(AXObject*);
78 78
79 RawPtrWillBeMember<FrameView> m_scrollView; 79 RawPtrWillBeMember<FrameView> m_scrollView;
80 RefPtrWillBeMember<AXObject> m_horizontalScrollbar; 80 RefPtrWillBeMember<AXObject> m_horizontalScrollbar;
81 RefPtrWillBeMember<AXObject> m_verticalScrollbar; 81 RefPtrWillBeMember<AXObject> m_verticalScrollbar;
82 bool m_childrenDirty; 82 bool m_childrenDirty;
83 }; 83 };
84 84
85 DEFINE_AX_OBJECT_TYPE_CASTS(AXScrollView, isAXScrollView()); 85 DEFINE_AX_OBJECT_TYPE_CASTS(AXScrollView, isAXScrollView());
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // AXScrollView_h 89 #endif // AXScrollView_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXSVGRoot.h ('k') | Source/modules/accessibility/AXScrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698