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

Side by Side Diff: Source/modules/accessibility/AXTable.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/AXSpinButton.h ('k') | Source/modules/accessibility/AXTableCell.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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 27 matching lines...) Expand all
38 class AXObjectCacheImpl; 38 class AXObjectCacheImpl;
39 class AXTableCell; 39 class AXTableCell;
40 40
41 class MODULES_EXPORT AXTable : public AXLayoutObject { 41 class MODULES_EXPORT AXTable : public AXLayoutObject {
42 42
43 protected: 43 protected:
44 AXTable(LayoutObject*, AXObjectCacheImpl&); 44 AXTable(LayoutObject*, AXObjectCacheImpl&);
45 45
46 public: 46 public:
47 static PassRefPtrWillBeRawPtr<AXTable> create(LayoutObject*, AXObjectCacheIm pl&); 47 static PassRefPtrWillBeRawPtr<AXTable> create(LayoutObject*, AXObjectCacheIm pl&);
48 virtual ~AXTable(); 48 ~AXTable() override;
49 DECLARE_VIRTUAL_TRACE(); 49 DECLARE_VIRTUAL_TRACE();
50 50
51 virtual void init() override final; 51 void init() final;
52 52
53 virtual bool isAXTable() const override final; 53 bool isAXTable() const final;
54 virtual bool isDataTable() const override final; 54 bool isDataTable() const final;
55 55
56 virtual AccessibilityRole roleValue() const override final; 56 AccessibilityRole roleValue() const final;
57 57
58 virtual void addChildren() override; 58 void addChildren() override;
59 virtual void clearChildren() override final; 59 void clearChildren() final;
60 60
61 // To be overridden by AXARIAGrid. 61 // To be overridden by AXARIAGrid.
62 virtual bool isAriaTable() const { return false; } 62 virtual bool isAriaTable() const { return false; }
63 virtual bool supportsSelectedRows() { return false; } 63 virtual bool supportsSelectedRows() { return false; }
64 64
65 const AccessibilityChildrenVector& columns(); 65 const AccessibilityChildrenVector& columns();
66 const AccessibilityChildrenVector& rows(); 66 const AccessibilityChildrenVector& rows();
67 67
68 unsigned columnCount(); 68 unsigned columnCount();
69 unsigned rowCount(); 69 unsigned rowCount();
70 70
71 virtual String deprecatedTitle(TextUnderElementMode) const override final; 71 String deprecatedTitle(TextUnderElementMode) const final;
72 72
73 // all the cells in the table 73 // all the cells in the table
74 void cells(AccessibilityChildrenVector&); 74 void cells(AccessibilityChildrenVector&);
75 AXTableCell* cellForColumnAndRow(unsigned column, unsigned row); 75 AXTableCell* cellForColumnAndRow(unsigned column, unsigned row);
76 76
77 void columnHeaders(AccessibilityChildrenVector&); 77 void columnHeaders(AccessibilityChildrenVector&);
78 void rowHeaders(AccessibilityChildrenVector&); 78 void rowHeaders(AccessibilityChildrenVector&);
79 79
80 // an object that contains, as children, all the objects that act as headers 80 // an object that contains, as children, all the objects that act as headers
81 AXObject* headerContainer(); 81 AXObject* headerContainer();
82 82
83 protected: 83 protected:
84 AccessibilityChildrenVector m_rows; 84 AccessibilityChildrenVector m_rows;
85 AccessibilityChildrenVector m_columns; 85 AccessibilityChildrenVector m_columns;
86 86
87 RefPtrWillBeMember<AXObject> m_headerContainer; 87 RefPtrWillBeMember<AXObject> m_headerContainer;
88 bool m_isAXTable; 88 bool m_isAXTable;
89 89
90 bool hasARIARole() const; 90 bool hasARIARole() const;
91 virtual bool isTableExposableThroughAccessibility() const; 91 virtual bool isTableExposableThroughAccessibility() const;
92 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override final; 92 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final;
93 }; 93 };
94 94
95 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); 95 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable());
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif // AXTable_h 99 #endif // AXTable_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXSpinButton.h ('k') | Source/modules/accessibility/AXTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698