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 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #ifndef AXTable_h | 29 #ifndef AXTable_h |
30 #define AXTable_h | 30 #define AXTable_h |
31 | 31 |
32 #include "modules/accessibility/AXRenderObject.h" | 32 #include "modules/accessibility/AXRenderObject.h" |
33 #include "wtf/Forward.h" | 33 #include "wtf/Forward.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
| 37 class AXObjectCache; |
37 class AXTableCell; | 38 class AXTableCell; |
38 | 39 |
39 class AXTable : public AXRenderObject { | 40 class AXTable : public AXRenderObject { |
40 | 41 |
41 protected: | 42 protected: |
42 explicit AXTable(RenderObject*); | 43 explicit AXTable(RenderObject*, AXObjectCache*); |
| 44 |
43 public: | 45 public: |
44 static PassRefPtr<AXTable> create(RenderObject*); | 46 static PassRefPtr<AXTable> create(RenderObject*, AXObjectCache*); |
45 virtual ~AXTable(); | 47 virtual ~AXTable(); |
46 | 48 |
47 virtual void init() override final; | 49 virtual void init() override final; |
48 | 50 |
49 virtual bool isAXTable() const override final; | 51 virtual bool isAXTable() const override final; |
50 virtual bool isDataTable() const override final; | 52 virtual bool isDataTable() const override final; |
51 | 53 |
52 virtual AccessibilityRole roleValue() const override final; | 54 virtual AccessibilityRole roleValue() const override final; |
53 | 55 |
54 virtual void addChildren() override; | 56 virtual void addChildren() override; |
(...skipping 30 matching lines...) Expand all Loading... |
85 bool hasARIARole() const; | 87 bool hasARIARole() const; |
86 virtual bool isTableExposableThroughAccessibility() const; | 88 virtual bool isTableExposableThroughAccessibility() const; |
87 virtual bool computeAccessibilityIsIgnored() const override final; | 89 virtual bool computeAccessibilityIsIgnored() const override final; |
88 }; | 90 }; |
89 | 91 |
90 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); | 92 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); |
91 | 93 |
92 } // namespace blink | 94 } // namespace blink |
93 | 95 |
94 #endif // AXTable_h | 96 #endif // AXTable_h |
OLD | NEW |