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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 class AXScrollView final : public AXObject { | 38 class AXScrollView final : public AXObject { |
39 public: | 39 public: |
40 static AXScrollView* create(FrameView*, AXObjectCacheImpl&); | 40 static AXScrollView* create(FrameView*, AXObjectCacheImpl&); |
41 AccessibilityRole roleValue() const override { return ScrollAreaRole; } | 41 AccessibilityRole roleValue() const override { return ScrollAreaRole; } |
42 | 42 |
43 ~AXScrollView() override; | 43 ~AXScrollView() override; |
44 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
45 void detach() override; | 45 void detach() override; |
46 | 46 |
47 protected: | |
48 ScrollableArea* getScrollableAreaIfScrollable() const override; | |
49 | |
50 private: | 47 private: |
51 AXScrollView(FrameView*, AXObjectCacheImpl&); | 48 AXScrollView(FrameView*, AXObjectCacheImpl&); |
52 | 49 |
53 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; | 50 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; |
54 bool isAXScrollView() const override { return true; } | 51 bool isAXScrollView() const override { return true; } |
55 bool isEnabled() const override { return true; } | 52 bool isEnabled() const override { return true; } |
56 | 53 |
57 bool isAttachment() const override; | 54 bool isAttachment() const override; |
58 Widget* widgetForAttachmentView() const override; | 55 Widget* widgetForAttachmentView() const override; |
59 | 56 |
(...skipping 17 matching lines...) Expand all Loading... |
77 | 74 |
78 RawPtrWillBeMember<FrameView> m_scrollView; | 75 RawPtrWillBeMember<FrameView> m_scrollView; |
79 Member<AXObject> m_horizontalScrollbar; | 76 Member<AXObject> m_horizontalScrollbar; |
80 Member<AXObject> m_verticalScrollbar; | 77 Member<AXObject> m_verticalScrollbar; |
81 bool m_childrenDirty; | 78 bool m_childrenDirty; |
82 }; | 79 }; |
83 | 80 |
84 } // namespace blink | 81 } // namespace blink |
85 | 82 |
86 #endif // AXScrollView_h | 83 #endif // AXScrollView_h |
OLD | NEW |