OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 String alternativeTextForWebArea() const; | 206 String alternativeTextForWebArea() const; |
207 void alternativeText(Vector<AccessibilityText>&) const; | 207 void alternativeText(Vector<AccessibilityText>&) const; |
208 void ariaLabeledByText(Vector<AccessibilityText>&) const; | 208 void ariaLabeledByText(Vector<AccessibilityText>&) const; |
209 void changeValueByPercent(float percentChange); | 209 void changeValueByPercent(float percentChange); |
210 void helpText(Vector<AccessibilityText>&) const; | 210 void helpText(Vector<AccessibilityText>&) const; |
211 void titleElementText(Vector<AccessibilityText>&); | 211 void titleElementText(Vector<AccessibilityText>&); |
212 void visibleText(Vector<AccessibilityText>&) const; | 212 void visibleText(Vector<AccessibilityText>&) const; |
213 float stepValueForRange() const; | 213 float stepValueForRange() const; |
214 }; | 214 }; |
215 | 215 |
216 inline AXNodeObject* toAXNodeObject(AXObject* object) | 216 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); |
217 { | |
218 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXNodeObject()); | |
219 return static_cast<AXNodeObject*>(object); | |
220 } | |
221 | |
222 inline const AXNodeObject* toAXNodeObject(const AXObject* object) | |
223 { | |
224 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXNodeObject()); | |
225 return static_cast<const AXNodeObject*>(object); | |
226 } | |
227 | |
228 // This will catch anyone doing an unnecessary cast. | |
229 void toAXNodeObject(const AXNodeObject*); | |
230 | 217 |
231 } // namespace WebCore | 218 } // namespace WebCore |
232 | 219 |
233 #endif // AXNodeObject_h | 220 #endif // AXNodeObject_h |
OLD | NEW |