OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual AXObject* firstChild() const OVERRIDE { return webAreaObject(); } | 74 virtual AXObject* firstChild() const OVERRIDE { return webAreaObject(); } |
75 AXScrollbar* addChildScrollbar(Scrollbar*); | 75 AXScrollbar* addChildScrollbar(Scrollbar*); |
76 void removeChildScrollbar(AXObject*); | 76 void removeChildScrollbar(AXObject*); |
77 | 77 |
78 ScrollView* m_scrollView; | 78 ScrollView* m_scrollView; |
79 RefPtr<AXObject> m_horizontalScrollbar; | 79 RefPtr<AXObject> m_horizontalScrollbar; |
80 RefPtr<AXObject> m_verticalScrollbar; | 80 RefPtr<AXObject> m_verticalScrollbar; |
81 bool m_childrenDirty; | 81 bool m_childrenDirty; |
82 }; | 82 }; |
83 | 83 |
84 inline AXScrollView* toAXScrollView(AXObject* object) | 84 DEFINE_AX_OBJECT_TYPE_CASTS(AXScrollView, isAXScrollView()); |
85 { | |
86 ASSERT(!object || object->isAXScrollView()); | |
87 if (!object->isAXScrollView()) | |
88 return 0; | |
89 | |
90 return static_cast<AXScrollView*>(object); | |
91 } | |
92 | 85 |
93 } // namespace WebCore | 86 } // namespace WebCore |
94 | 87 |
95 #endif // AXScrollView_h | 88 #endif // AXScrollView_h |
OLD | NEW |