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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 bool m_detached; 599 bool m_detached;
600 }; 600 };
601 601
602 #if !HAVE(ACCESSIBILITY) 602 #if !HAVE(ACCESSIBILITY)
603 inline const AXObject::AccessibilityChildrenVector& AXObject::children() { retur n m_children; } 603 inline const AXObject::AccessibilityChildrenVector& AXObject::children() { retur n m_children; }
604 inline String AXObject::actionVerb() const { return emptyString(); } 604 inline String AXObject::actionVerb() const { return emptyString(); }
605 inline int AXObject::lineForPosition(const VisiblePosition&) const { return -1; } 605 inline int AXObject::lineForPosition(const VisiblePosition&) const { return -1; }
606 inline void AXObject::updateBackingStore() { } 606 inline void AXObject::updateBackingStore() { }
607 #endif 607 #endif
608 608
609 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
610 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
611
609 } // namespace WebCore 612 } // namespace WebCore
610 613
611 #endif // AXObject_h 614 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698