OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 private: | 42 private: |
43 AXARIAGrid(LayoutObject*, AXObjectCacheImpl&); | 43 AXARIAGrid(LayoutObject*, AXObjectCacheImpl&); |
44 | 44 |
45 public: | 45 public: |
46 static AXARIAGrid* Create(LayoutObject*, AXObjectCacheImpl&); | 46 static AXARIAGrid* Create(LayoutObject*, AXObjectCacheImpl&); |
47 ~AXARIAGrid() override; | 47 ~AXARIAGrid() override; |
48 | 48 |
49 bool IsAriaTable() const override { return true; } | 49 bool IsAriaTable() const override { return true; } |
50 | 50 |
| 51 AccessibilityRole RoleValue() const final { |
| 52 return AXLayoutObject::RoleValue(); |
| 53 } // Use ARIA role |
| 54 |
51 void AddChildren() override; | 55 void AddChildren() override; |
52 | 56 |
53 private: | 57 private: |
54 // ARIA treegrids and grids support selected rows. | 58 // ARIA treegrids and grids support selected rows. |
55 bool SupportsSelectedRows() override { return true; } | 59 bool SupportsSelectedRows() override { return true; } |
56 bool IsMultiSelectable() const override { return true; } | 60 bool IsMultiSelectable() const override { return true; } |
57 bool IsTableExposableThroughAccessibility() const override { return true; } | 61 bool IsTableExposableThroughAccessibility() const override { return true; } |
58 | 62 |
59 bool AddTableRowChild(AXObject*, | 63 bool AddTableRowChild(AXObject*, |
60 HeapHashSet<Member<AXObject>>& appended_rows, | 64 HeapHashSet<Member<AXObject>>& appended_rows, |
61 unsigned& column_count); | 65 unsigned& column_count); |
62 }; | 66 }; |
63 | 67 |
64 } // namespace blink | 68 } // namespace blink |
65 | 69 |
66 #endif // AXARIAGrid_h | 70 #endif // AXARIAGrid_h |
OLD | NEW |