| 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 void AddChildren() final; | 48 void AddChildren() final; |
| 49 bool IsTableRow() const final; | 49 bool IsTableRow() const final; |
| 50 | 50 |
| 51 // retrieves the "row" header (a th tag in the rightmost column) | 51 // retrieves the "row" header (a th tag in the rightmost column) |
| 52 virtual AXObject* HeaderObject(); | 52 virtual AXObjectImpl* HeaderObject(); |
| 53 // Retrieves the "row" headers (th, scope) from left to right for the each | 53 // Retrieves the "row" headers (th, scope) from left to right for the each |
| 54 // row. | 54 // row. |
| 55 virtual void HeaderObjectsForRow(AXObjectVector&); | 55 virtual void HeaderObjectsForRow(AXObjectVector&); |
| 56 AXObject* ParentTable() const; | 56 AXObjectImpl* ParentTable() const; |
| 57 | 57 |
| 58 void SetRowIndex(int row_index) { row_index_ = row_index; } | 58 void SetRowIndex(int row_index) { row_index_ = row_index; } |
| 59 int RowIndex() const { return row_index_; } | 59 int RowIndex() const { return row_index_; } |
| 60 | 60 |
| 61 unsigned AriaColumnIndex() const; | 61 unsigned AriaColumnIndex() const; |
| 62 unsigned AriaRowIndex() const; | 62 unsigned AriaRowIndex() const; |
| 63 | 63 |
| 64 protected: | 64 protected: |
| 65 AccessibilityRole DetermineAccessibilityRole() final; | 65 AccessibilityRole DetermineAccessibilityRole() final; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 int row_index_; | 68 int row_index_; |
| 69 | 69 |
| 70 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; | 70 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, IsTableRow()); | 73 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, IsTableRow()); |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif // AXTableRow_h | 77 #endif // AXTableRow_h |
| OLD | NEW |