| 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 28 matching lines...) Expand all Loading... |
| 39 public: | 39 public: |
| 40 static PassRefPtr<AXScrollView> create(FrameView*, AXObjectCacheImpl*); | 40 static PassRefPtr<AXScrollView> create(FrameView*, AXObjectCacheImpl*); |
| 41 virtual AccessibilityRole roleValue() const override { return ScrollAreaRole
; } | 41 virtual AccessibilityRole roleValue() const override { return ScrollAreaRole
; } |
| 42 FrameView* scrollView() const { return m_scrollView; } | 42 FrameView* scrollView() const { return m_scrollView; } |
| 43 | 43 |
| 44 virtual ~AXScrollView(); | 44 virtual ~AXScrollView(); |
| 45 virtual void detach() override; | 45 virtual void detach() override; |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 virtual ScrollableArea* getScrollableAreaIfScrollable() const override; | 48 virtual ScrollableArea* getScrollableAreaIfScrollable() const override; |
| 49 virtual void scrollTo(const IntPoint&) const override; | |
| 50 | 49 |
| 51 private: | 50 private: |
| 52 AXScrollView(FrameView*, AXObjectCacheImpl*); | 51 AXScrollView(FrameView*, AXObjectCacheImpl*); |
| 53 | 52 |
| 54 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const
override; | 53 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const
override; |
| 55 virtual bool isAXScrollView() const override { return true; } | 54 virtual bool isAXScrollView() const override { return true; } |
| 56 virtual bool isEnabled() const override { return true; } | 55 virtual bool isEnabled() const override { return true; } |
| 57 | 56 |
| 58 virtual bool isAttachment() const override; | 57 virtual bool isAttachment() const override; |
| 59 virtual Widget* widgetForAttachmentView() const override; | 58 virtual Widget* widgetForAttachmentView() const override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 90 RefPtr<AXObject> m_horizontalScrollbar; | 89 RefPtr<AXObject> m_horizontalScrollbar; |
| 91 RefPtr<AXObject> m_verticalScrollbar; | 90 RefPtr<AXObject> m_verticalScrollbar; |
| 92 bool m_childrenDirty; | 91 bool m_childrenDirty; |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 DEFINE_AX_OBJECT_TYPE_CASTS(AXScrollView, isAXScrollView()); | 94 DEFINE_AX_OBJECT_TYPE_CASTS(AXScrollView, isAXScrollView()); |
| 96 | 95 |
| 97 } // namespace blink | 96 } // namespace blink |
| 98 | 97 |
| 99 #endif // AXScrollView_h | 98 #endif // AXScrollView_h |
| OLD | NEW |