OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void ContentAreaDidShow() const override; | 109 void ContentAreaDidShow() const override; |
110 void ContentAreaDidHide() const override; | 110 void ContentAreaDidHide() const override; |
111 | 111 |
112 void FinishCurrentScrollAnimations() override; | 112 void FinishCurrentScrollAnimations() override; |
113 | 113 |
114 void DidAddVerticalScrollbar(Scrollbar&) override; | 114 void DidAddVerticalScrollbar(Scrollbar&) override; |
115 void WillRemoveVerticalScrollbar(Scrollbar&) override; | 115 void WillRemoveVerticalScrollbar(Scrollbar&) override; |
116 void DidAddHorizontalScrollbar(Scrollbar&) override; | 116 void DidAddHorizontalScrollbar(Scrollbar&) override; |
117 void WillRemoveHorizontalScrollbar(Scrollbar&) override; | 117 void WillRemoveHorizontalScrollbar(Scrollbar&) override; |
118 | 118 |
119 void NotifyContentAreaScrolled(const ScrollOffset& delta) override; | 119 void NotifyContentAreaScrolled(const ScrollOffset& delta, |
| 120 ScrollType) override; |
120 | 121 |
121 bool SetScrollbarsVisibleForTesting(bool) override; | 122 bool SetScrollbarsVisibleForTesting(bool) override; |
122 | 123 |
123 ScrollOffset AdjustScrollOffsetIfNecessary(const ScrollOffset&) const; | 124 ScrollOffset AdjustScrollOffsetIfNecessary(const ScrollOffset&) const; |
124 | 125 |
125 void ImmediateScrollTo(const ScrollOffset&); | 126 void ImmediateScrollTo(const ScrollOffset&); |
126 | 127 |
127 bool have_scrolled_since_page_load_; | 128 bool have_scrolled_since_page_load_; |
128 bool needs_scroller_style_update_; | 129 bool needs_scroller_style_update_; |
129 IntRect visible_scroller_thumb_rect_; | 130 IntRect visible_scroller_thumb_rect_; |
130 }; | 131 }; |
131 | 132 |
132 } // namespace blink | 133 } // namespace blink |
133 | 134 |
134 #endif // ScrollAnimatorMac_h | 135 #endif // ScrollAnimatorMac_h |
OLD | NEW |