OLD | NEW |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void ColumnIndexRange(std::pair<unsigned, unsigned>& column_range); | 53 virtual void ColumnIndexRange(std::pair<unsigned, unsigned>& column_range); |
54 // In the case of cells that act as row or column headers. | 54 // In the case of cells that act as row or column headers. |
55 SortDirection GetSortDirection() const final; | 55 SortDirection GetSortDirection() const final; |
56 virtual AccessibilityRole ScanToDecideHeaderRole(); | 56 virtual AccessibilityRole ScanToDecideHeaderRole(); |
57 | 57 |
58 unsigned AriaColumnIndex() const; | 58 unsigned AriaColumnIndex() const; |
59 unsigned AriaRowIndex() const; | 59 unsigned AriaRowIndex() const; |
60 void SetARIAColIndexFromRow(int index) { aria_col_index_from_row_ = index; } | 60 void SetARIAColIndexFromRow(int index) { aria_col_index_from_row_ = index; } |
61 | 61 |
62 protected: | 62 protected: |
63 virtual AXObject* ParentTable() const; | 63 virtual AXObjectImpl* ParentTable() const; |
64 AccessibilityRole DetermineAccessibilityRole() final; | 64 AccessibilityRole DetermineAccessibilityRole() final; |
65 | 65 |
66 private: | 66 private: |
67 bool IsTableHeaderCell() const; | 67 bool IsTableHeaderCell() const; |
68 bool IsRowHeaderCell() const; | 68 bool IsRowHeaderCell() const; |
69 bool IsColumnHeaderCell() const; | 69 bool IsColumnHeaderCell() const; |
70 | 70 |
71 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; | 71 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; |
72 | 72 |
73 unsigned aria_col_index_from_row_; | 73 unsigned aria_col_index_from_row_; |
74 }; | 74 }; |
75 | 75 |
76 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableCell, IsTableCell()); | 76 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableCell, IsTableCell()); |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif // AXTableCell_h | 80 #endif // AXTableCell_h |
OLD | NEW |