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 int m_rowIndex; | 53 int m_rowIndex; |
54 virtual AccessibilityRole determineAccessibilityRole() OVERRIDE; | 54 virtual AccessibilityRole determineAccessibilityRole() OVERRIDE; |
55 | 55 |
56 private: | 56 private: |
57 // If a table cell is not exposed as a table cell, a TH element can serve as
its title UI element. | 57 // If a table cell is not exposed as a table cell, a TH element can serve as
its title UI element. |
58 virtual AXObject* titleUIElement() const OVERRIDE; | 58 virtual AXObject* titleUIElement() const OVERRIDE; |
59 virtual bool exposesTitleUIElement() const OVERRIDE { return true; } | 59 virtual bool exposesTitleUIElement() const OVERRIDE { return true; } |
60 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; | 60 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; |
61 }; | 61 }; |
62 | 62 |
63 inline AXTableCell* toAXTableCell(AXObject* object) | 63 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableCell, isTableCell()); |
64 { | |
65 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell()); | |
66 return static_cast<AXTableCell*>(object); | |
67 } | |
68 | |
69 inline const AXTableCell* toAXTableCell(const AXObject* object) | |
70 { | |
71 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell()); | |
72 return static_cast<const AXTableCell*>(object); | |
73 } | |
74 | |
75 // This will catch anyone doing an unnecessary cast. | |
76 void toAXTableCell(const AXTableCell*); | |
77 | 64 |
78 } // namespace WebCore | 65 } // namespace WebCore |
79 | 66 |
80 #endif // AXTableCell_h | 67 #endif // AXTableCell_h |
OLD | NEW |