OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual void contentAreaDidShow() const {} | 99 virtual void contentAreaDidShow() const {} |
100 virtual void contentAreaDidHide() const {} | 100 virtual void contentAreaDidHide() const {} |
101 | 101 |
102 virtual void finishCurrentScrollAnimations() {} | 102 virtual void finishCurrentScrollAnimations() {} |
103 | 103 |
104 virtual void didAddVerticalScrollbar(Scrollbar&) {} | 104 virtual void didAddVerticalScrollbar(Scrollbar&) {} |
105 virtual void willRemoveVerticalScrollbar(Scrollbar&) {} | 105 virtual void willRemoveVerticalScrollbar(Scrollbar&) {} |
106 virtual void didAddHorizontalScrollbar(Scrollbar&) {} | 106 virtual void didAddHorizontalScrollbar(Scrollbar&) {} |
107 virtual void willRemoveHorizontalScrollbar(Scrollbar&) {} | 107 virtual void willRemoveHorizontalScrollbar(Scrollbar&) {} |
108 | 108 |
| 109 virtual bool shouldScrollbarParticipateInHitTesting(Scrollbar&) { |
| 110 return true; |
| 111 } |
| 112 |
109 virtual void notifyContentAreaScrolled(const ScrollOffset&) {} | 113 virtual void notifyContentAreaScrolled(const ScrollOffset&) {} |
110 | 114 |
111 virtual bool setScrollbarsVisibleForTesting(bool) { return false; } | 115 virtual bool setScrollbarsVisibleForTesting(bool) { return false; } |
112 | 116 |
113 DECLARE_VIRTUAL_TRACE(); | 117 DECLARE_VIRTUAL_TRACE(); |
114 | 118 |
115 protected: | 119 protected: |
116 explicit ScrollAnimatorBase(ScrollableArea*); | 120 explicit ScrollAnimatorBase(ScrollableArea*); |
117 | 121 |
118 virtual void notifyOffsetChanged(); | 122 virtual void notifyOffsetChanged(); |
119 | 123 |
120 Member<ScrollableArea> m_scrollableArea; | 124 Member<ScrollableArea> m_scrollableArea; |
121 | 125 |
122 ScrollOffset m_currentOffset; | 126 ScrollOffset m_currentOffset; |
123 }; | 127 }; |
124 | 128 |
125 } // namespace blink | 129 } // namespace blink |
126 | 130 |
127 #endif // ScrollAnimatorBase_h | 131 #endif // ScrollAnimatorBase_h |
OLD | NEW |