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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 AXTableRow(LayoutObject*, AXObjectCacheImpl&); | 42 AXTableRow(LayoutObject*, AXObjectCacheImpl&); |
43 | 43 |
44 public: | 44 public: |
45 static AXTableRow* create(LayoutObject*, AXObjectCacheImpl&); | 45 static AXTableRow* create(LayoutObject*, AXObjectCacheImpl&); |
46 ~AXTableRow() override; | 46 ~AXTableRow() override; |
47 | 47 |
48 bool isTableRow() const final; | 48 bool isTableRow() const final; |
49 | 49 |
50 // retrieves the "row" header (a th tag in the rightmost column) | 50 // retrieves the "row" header (a th tag in the rightmost column) |
51 virtual AXObject* headerObject(); | 51 virtual AXObject* headerObject(); |
52 // retrieves the "row" headers (th, scope) from left to right for the each row
. | 52 // Retrieves the "row" headers (th, scope) from left to right for the each |
| 53 // row. |
53 virtual void headerObjectsForRow(AXObjectVector&); | 54 virtual void headerObjectsForRow(AXObjectVector&); |
54 AXObject* parentTable() const; | 55 AXObject* parentTable() const; |
55 | 56 |
56 void setRowIndex(int rowIndex) { m_rowIndex = rowIndex; } | 57 void setRowIndex(int rowIndex) { m_rowIndex = rowIndex; } |
57 int rowIndex() const { return m_rowIndex; } | 58 int rowIndex() const { return m_rowIndex; } |
58 | 59 |
59 protected: | 60 protected: |
60 AccessibilityRole determineAccessibilityRole() final; | 61 AccessibilityRole determineAccessibilityRole() final; |
61 | 62 |
62 private: | 63 private: |
63 int m_rowIndex; | 64 int m_rowIndex; |
64 | 65 |
65 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; | 66 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; |
66 }; | 67 }; |
67 | 68 |
68 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow()); | 69 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow()); |
69 | 70 |
70 } // namespace blink | 71 } // namespace blink |
71 | 72 |
72 #endif // AXTableRow_h | 73 #endif // AXTableRow_h |
OLD | NEW |