Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: Source/core/accessibility/AXObject.h

Issue 31463002: Introduce DEFINE_AX_OBJECT_TYPE_CASTS to replace manual toFoo() in accessibility child class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/accessibility/AXObject.h
diff --git a/Source/core/accessibility/AXObject.h b/Source/core/accessibility/AXObject.h
index d5db1b6a906f33a7c1dce825454528cc08e4d546..ae2d7d7f59d0a3fa6065351ef60e493a86e366f1 100644
--- a/Source/core/accessibility/AXObject.h
+++ b/Source/core/accessibility/AXObject.h
@@ -606,6 +606,9 @@ inline int AXObject::lineForPosition(const VisiblePosition&) const { return -1;
inline void AXObject::updateBackingStore() { }
#endif
+#define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
+ DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.predicate)
+
} // namespace WebCore
#endif // AXObject_h

Powered by Google App Engine
This is Rietveld 408576698